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

Method test_process_task_sem

t/unit/worker/test_worker.py:1479–1485  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1477 state.Persistent = Persistent
1478
1479 def test_process_task_sem(self):
1480 worker = self.worker
1481 worker._quick_acquire = Mock()
1482
1483 req = Mock()
1484 worker._process_task_sem(req)
1485 worker._quick_acquire.assert_called_with(worker._process_task, req)
1486
1487 def test_signal_consumer_close(self):
1488 worker = self.worker

Callers

nothing calls this directly

Calls 1

_process_task_semMethod · 0.80

Tested by

no test coverage detected