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

Method test_from_message_empty_args

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

Source from the content-addressed store, hash-verified

2029 assert job.message is m
2030
2031 def test_from_message_empty_args(self):
2032 tid = uuid()
2033 m = self.TaskMessage(self.mytask.name, tid, args=[], kwargs={})
2034 job = Request(m, app=self.app)
2035 assert isinstance(job, Request)
2036
2037 def test_from_message_missing_required_fields(self):
2038 m = self.TaskMessage(self.mytask.name)

Callers

nothing calls this directly

Calls 1

RequestClass · 0.90

Tested by

no test coverage detected