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

Method test_start

t/unit/concurrency/test_prefork.py:1415–1431  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1413class test_TaskPool:
1414
1415 def test_start(self):
1416 pool = TaskPool(10)
1417 pool.start()
1418 assert pool._pool.started
1419 assert pool._pool._state == asynpool.RUN
1420
1421 _pool = pool._pool
1422 pool.stop()
1423 assert _pool.closed
1424 assert _pool.joined
1425 pool.stop()
1426
1427 pool.start()
1428 _pool = pool._pool
1429 pool.terminate()
1430 pool.terminate()
1431 assert _pool.terminated
1432
1433 def test_restart(self):
1434 pool = TaskPool(10)

Callers

nothing calls this directly

Calls 4

startMethod · 0.95
stopMethod · 0.95
TaskPoolClass · 0.70
terminateMethod · 0.45

Tested by

no test coverage detected