MCPcopy
hub / github.com/celery/celery / test_start_worker_with_exception

Method test_start_worker_with_exception

t/unit/contrib/test_worker.py:43–49  ·  view source on GitHub ↗

Make sure that start_worker does not hang on exception

(self)

Source from the content-addressed store, hash-verified

41 assert val == 3
42
43 def test_start_worker_with_exception(self):
44 """Make sure that start_worker does not hang on exception"""
45
46 with pytest.raises(NotImplementedError):
47 with start_worker(app=self.app, loglevel=0):
48 result = self.error_task.apply_async()
49 result.get(timeout=5)
50
51 def test_start_worker_with_hostname_config(self):
52 """Make sure a custom hostname can be supplied to the TestWorkController"""

Callers

nothing calls this directly

Calls 4

start_workerFunction · 0.90
raisesMethod · 0.45
apply_asyncMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected