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

Method test_execute

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

Source from the content-addressed store, hash-verified

2049 Request(m, app=self.app)
2050
2051 def test_execute(self):
2052 tid = uuid()
2053 job = self.xRequest(id=tid, args=[4], kwargs={})
2054 assert job.execute() == 256
2055 meta = self.mytask.backend.get_task_meta(tid)
2056 assert meta['status'] == states.SUCCESS
2057 assert meta['result'] == 256
2058
2059 def test_execute_backend_error_acks_late(self):
2060 """direct call to execute should reject task in case of internal failure."""

Callers

nothing calls this directly

Calls 3

xRequestMethod · 0.80
executeMethod · 0.45
get_task_metaMethod · 0.45

Tested by

no test coverage detected