MCPcopy
hub / github.com/celery/celery / test_from_message_invalid_kwargs

Method test_from_message_invalid_kwargs

t/unit/worker/test_request.py:984–988  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

982 state.should_terminate = original_should_terminate
983
984 def test_from_message_invalid_kwargs(self):
985 m = self.TaskMessage(self.mytask.name, args=(), kwargs='foo')
986 req = Request(m, app=self.app)
987 with pytest.raises(InvalidTaskError):
988 raise req.execute().exception.exc
989
990 def test_on_hard_timeout_acks_late(self, patching):
991 error = patching('celery.worker.request.error')

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
RequestClass · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected