MCPcopy
hub / github.com/celery/celery / test_from_dict

Method test_from_dict

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

Source from the content-addressed store, hash-verified

975
976 @pytest.mark.parametrize("group_type", (group, group_subclass))
977 def test_from_dict(self, group_type):
978 x = group_type([self.add.s(2, 2), self.add.s(4, 4)])
979 x['args'] = (2, 2)
980 value = group_type.from_dict(dict(x))
981 assert value and isinstance(value, group_type)
982 x['args'] = None
983 value = group_type.from_dict(dict(x))
984 assert value and isinstance(value, group_type)
985
986 @pytest.mark.parametrize("group_type", (group, group_subclass))
987 def test_from_dict_deep_deserialize(self, group_type):

Callers

nothing calls this directly

Calls 2

sMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected