MCPcopy Create free account
hub / github.com/celery/celery / test_on_timer_error

Method test_on_timer_error

t/unit/worker/test_worker.py:1373–1381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1371 worker.pool.signal_safe = sigsafe
1372
1373 def test_on_timer_error(self):
1374 worker = self.app.WorkController(concurrency=1, loglevel=0)
1375
1376 try:
1377 raise KeyError('foo')
1378 except KeyError as exc:
1379 components.Timer(worker).on_timer_error(exc)
1380 msg, args = self.comp_logger.error.call_args[0]
1381 assert 'KeyError' in msg % args
1382
1383 def test_on_timer_tick(self):
1384 worker = self.app.WorkController(concurrency=1, loglevel=10)

Callers

nothing calls this directly

Calls 2

WorkControllerMethod · 0.80
on_timer_errorMethod · 0.80

Tested by

no test coverage detected