MCPcopy
hub / github.com/celery/celery / test_create

Method test_create

t/unit/worker/test_components.py:32–35  ·  view source on GitHub ↗
(self, get_event_loop, set_event_loop)

Source from the content-addressed store, hash-verified

30 @patch('celery.worker.components.set_event_loop')
31 @patch('celery.worker.components.get_event_loop')
32 def test_create(self, get_event_loop, set_event_loop):
33 self.hub._patch_thread_primitives = Mock(name='ptp')
34 assert self.hub.create(self.w) is self.hub
35 self.hub._patch_thread_primitives.assert_called_with(self.w)
36
37 def test_start(self):
38 self.hub.start(self.w)

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected