MCPcopy
hub / github.com/celery/celery / test_call_with_tasks

Method test_call_with_tasks

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

Source from the content-addressed store, hash-verified

728 assert not x()
729
730 def test_call_with_tasks(self):
731 x = self.add.s(2, 2) | self.add.s(4)
732 x.apply_async = Mock()
733 x(2, 2, foo=1)
734 x.apply_async.assert_called_with((2, 2), {'foo': 1})
735
736 def test_from_dict_no_args__with_args(self):
737 x = dict(self.add.s(2, 2) | self.add.s(4))

Callers

nothing calls this directly

Calls 2

xFunction · 0.85
sMethod · 0.45

Tested by

no test coverage detected