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

Method test_statedb

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

Source from the content-addressed store, hash-verified

1466 assert sec.stop.call_count
1467
1468 def test_statedb(self):
1469 from celery.worker import state
1470 Persistent = state.Persistent
1471
1472 state.Persistent = Mock()
1473 try:
1474 worker = self.create_worker(statedb='statefilename')
1475 assert worker._persistence
1476 finally:
1477 state.Persistent = Persistent
1478
1479 def test_process_task_sem(self):
1480 worker = self.worker

Callers

nothing calls this directly

Calls 1

create_workerMethod · 0.95

Tested by

no test coverage detected