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

Method test_on_timer_tick

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

Source from the content-addressed store, hash-verified

1381 assert 'KeyError' in msg % args
1382
1383 def test_on_timer_tick(self):
1384 worker = self.app.WorkController(concurrency=1, loglevel=10)
1385
1386 components.Timer(worker).on_timer_tick(30.0)
1387 xargs = self.comp_logger.debug.call_args[0]
1388 fmt, arg = xargs[0], xargs[1]
1389 assert arg == 30.0
1390 assert 'Next ETA %s secs' in fmt
1391
1392 def test_process_task(self):
1393 worker = self.worker

Callers

nothing calls this directly

Calls 2

WorkControllerMethod · 0.80
on_timer_tickMethod · 0.80

Tested by

no test coverage detected