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

Method test_init_without_schedule

t/unit/utils/test_timer2.py:22–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 assert t.schedule is schedule
21
22 def test_init_without_schedule(self):
23 on_error = Mock()
24
25 t = timer2.Timer(on_error=on_error, max_interval=7)
26
27 assert isinstance(t.schedule, timer2.Schedule)
28 assert t.schedule.on_error is on_error
29 assert t.schedule.max_interval == 7
30
31 def test_enter_after(self):
32 t = timer2.Timer()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected