MCPcopy
hub / github.com/celery/celery / test_on_worker_init

Method test_on_worker_init

t/unit/app/test_loaders.py:218–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 self.loader = AppLoader(app=self.app)
217
218 def test_on_worker_init(self):
219 self.app.conf.imports = ('subprocess',)
220 sys.modules.pop('subprocess', None)
221 self.loader.init_worker()
222 assert 'subprocess' in sys.modules
223
224
225class test_autodiscovery:

Callers

nothing calls this directly

Calls 2

init_workerMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected