MCPcopy
hub / github.com/celery/celery / test_append_to_empty_chain

Method test_append_to_empty_chain

t/unit/tasks/test_canvas.py:771–779  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

769 node = node.parent
770
771 def test_append_to_empty_chain(self):
772 x = chain()
773 x |= self.add.s(1, 1)
774 x |= self.add.s(1)
775 x.freeze()
776 tasks, _ = x._frozen
777 assert len(tasks) == 2
778
779 assert x.apply().get() == 3
780
781 @pytest.mark.usefixtures('depends_on_current_app')
782 def test_chain_single_child_result(self):

Callers

nothing calls this directly

Calls 5

chainClass · 0.90
sMethod · 0.45
freezeMethod · 0.45
getMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected