MCPcopy
hub / github.com/celery/celery / test_from_dict_full_subtasks

Method test_from_dict_full_subtasks

t/unit/tasks/test_canvas.py:443–448  ·  view source on GitHub ↗
(self, chain_type)

Source from the content-addressed store, hash-verified

441
442 @pytest.mark.parametrize("chain_type", [_chain, chain_subclass])
443 def test_from_dict_full_subtasks(self, chain_type):
444 c = chain_type(self.add.si(1, 2), self.add.si(3, 4), self.add.si(5, 6))
445 serialized = json.loads(json.dumps(c))
446 deserialized = chain_type.from_dict(serialized)
447 assert all(isinstance(task, Signature) for task in deserialized.tasks)
448 assert isinstance(deserialized, chain_type)
449
450 @pytest.mark.usefixtures('depends_on_current_app')
451 def test_app_falls_back_to_default(self):

Callers

nothing calls this directly

Calls 2

siMethod · 0.80
from_dictMethod · 0.45

Tested by

no test coverage detected