MCPcopy
hub / github.com/celery/celery / test_execute

Method test_execute

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

Source from the content-addressed store, hash-verified

1207 Request(m, app=self.app)
1208
1209 def test_execute(self):
1210 tid = uuid()
1211 job = self.xRequest(id=tid, args=[4], kwargs={})
1212 assert job.execute() == 256
1213 meta = self.mytask.backend.get_task_meta(tid)
1214 assert meta['status'] == states.SUCCESS
1215 assert meta['result'] == 256
1216
1217 def test_execute_backend_error_acks_late(self):
1218 """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