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

Method test_active

t/unit/worker/test_control.py:460–469  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

458 self.panel.handle('report')
459
460 def test_active(self):
461 r = Request(
462 self.TaskMessage(self.mytask.name, 'do re mi'),
463 app=self.app,
464 )
465 worker_state.active_requests.add(r)
466 try:
467 assert self.panel.handle('dump_active')
468 finally:
469 worker_state.active_requests.discard(r)
470
471 def test_active_safe(self):
472 kwargsrepr = '<anything>'

Callers

nothing calls this directly

Calls 4

RequestClass · 0.90
addMethod · 0.45
handleMethod · 0.45
discardMethod · 0.45

Tested by

no test coverage detected