MCPcopy Create free account
hub / github.com/celery/celery / test_on_task_InvalidTaskError

Method test_on_task_InvalidTaskError

t/unit/worker/test_loops.py:230–234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

228 on_task(msg)
229
230 def test_on_task_InvalidTaskError(self):
231 x, on_task, msg, strategy = self.task_context(self.add.s(2, 2))
232 exc = strategy.side_effect = InvalidTaskError()
233 on_task(msg)
234 x.on_invalid_task.assert_called_with(None, msg, exc)
235
236 def test_on_task_DecodeError(self):
237 x, on_task, msg, strategy = self.task_context(self.add.s(2, 2))

Callers

nothing calls this directly

Calls 4

task_contextMethod · 0.95
InvalidTaskErrorClass · 0.90
on_taskFunction · 0.85
sMethod · 0.45

Tested by

no test coverage detected