MCPcopy
hub / github.com/celery/celery / test_close_terminate

Method test_close_terminate

t/unit/worker/test_components.py:51–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49class test_Pool:
50
51 def test_close_terminate(self):
52 w = Mock()
53 comp = Pool(w)
54 pool = w.pool = Mock()
55 comp.close(w)
56 pool.close.assert_called_with()
57 comp.terminate(w)
58 pool.terminate.assert_called_with()
59
60 w.pool = None
61 comp.close(w)
62 comp.terminate(w)
63
64 @t.skip.if_win32
65 def test_create_when_eventloop(self):

Callers

nothing calls this directly

Calls 3

closeMethod · 0.95
terminateMethod · 0.95
PoolClass · 0.90

Tested by

no test coverage detected