MCPcopy
hub / github.com/celery/celery / test_create_when_eventloop

Method test_create_when_eventloop

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

Source from the content-addressed store, hash-verified

63
64 @t.skip.if_win32
65 def test_create_when_eventloop(self):
66 w = Mock()
67 w.use_eventloop = w.pool_putlocks = w.pool_cls.uses_semaphore = True
68 comp = Pool(w)
69 w.pool = Mock()
70 comp.create(w)
71 assert w.process_task is w._process_task_sem
72
73 def test_create_calls_instantiate_with_max_memory(self):
74 w = Mock()

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
PoolClass · 0.90

Tested by

no test coverage detected