MCPcopy
hub / github.com/celery/celery / test_start_worker

Method test_start_worker

t/unit/contrib/test_worker.py:37–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 self.app.log.loglevel = 0
36
37 def test_start_worker(self):
38 with start_worker(app=self.app, loglevel=0):
39 result = self.add.s(1, 2).apply_async()
40 val = result.get(timeout=5)
41 assert val == 3
42
43 def test_start_worker_with_exception(self):
44 """Make sure that start_worker does not hang on exception"""

Callers

nothing calls this directly

Calls 4

start_workerFunction · 0.90
apply_asyncMethod · 0.45
sMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected