MCPcopy
hub / github.com/celery/celery / test_from_dict_deep_deserialize

Method test_from_dict_deep_deserialize

t/unit/tasks/test_canvas.py:987–995  ·  view source on GitHub ↗
(self, group_type)

Source from the content-addressed store, hash-verified

985
986 @pytest.mark.parametrize("group_type", (group, group_subclass))
987 def test_from_dict_deep_deserialize(self, group_type):
988 original_group = group_type([self.add.s(1, 2)] * 42)
989 serialized_group = json.loads(json.dumps(original_group))
990 deserialized_group = group_type.from_dict(serialized_group)
991 assert isinstance(deserialized_group, group_type)
992 assert all(
993 isinstance(child_task, Signature)
994 for child_task in deserialized_group.tasks
995 )
996
997 @pytest.mark.parametrize("group_type", (group, group_subclass))
998 def test_from_dict_deeper_deserialize(self, group_type):

Callers

nothing calls this directly

Calls 2

sMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected