MCPcopy Create free account
hub / github.com/python-arq/arq / test_not_run

Function test_not_run

tests/test_cron.py:194–203  ·  view source on GitHub ↗
(worker, caplog)

Source from the content-addressed store, hash-verified

192
193
194async def test_not_run(worker, caplog):
195 caplog.set_level(logging.INFO)
196 worker: Worker = worker(cron_jobs=[cron(foobar, hour=1, run_at_startup=False)])
197 await worker.main()
198 assert worker.jobs_complete == 0
199 assert worker.jobs_failed == 0
200 assert worker.jobs_retried == 0
201
202 log = '\n'.join(r.message for r in caplog.records)
203 assert 'cron:foobar()' not in log
204
205
206async def test_repr():

Callers

nothing calls this directly

Calls 3

cronFunction · 0.90
workerFunction · 0.85
mainMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…