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

Method test_from_message

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

Source from the content-addressed store, hash-verified

2017 self.mytask.pop_request()
2018
2019 def test_from_message(self):
2020 us = 'æØåveéðƒeæ'
2021 tid = uuid()
2022 m = self.TaskMessage(
2023 self.mytask.name, tid, args=[2], kwargs={us: 'bar'},
2024 )
2025 job = Request(m, app=self.app)
2026 assert isinstance(job, Request)
2027 assert job.name == self.mytask.name
2028 assert job.id == tid
2029 assert job.message is m
2030
2031 def test_from_message_empty_args(self):
2032 tid = uuid()

Callers

nothing calls this directly

Calls 1

RequestClass · 0.90

Tested by

no test coverage detected