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

Method test_init_with_schedule

t/unit/utils/test_timer2.py:13–20  ·  view source on GitHub ↗
(self, has_entries)

Source from the content-addressed store, hash-verified

11
12 @pytest.mark.parametrize('has_entries', [False, True])
13 def test_init_with_schedule(self, has_entries):
14 schedule = timer2.Schedule(max_interval=7)
15 if has_entries:
16 schedule.call_after(60, Mock())
17
18 t = timer2.Timer(schedule=schedule)
19
20 assert t.schedule is schedule
21
22 def test_init_without_schedule(self):
23 on_error = Mock()

Callers

nothing calls this directly

Calls 1

call_afterMethod · 0.80

Tested by

no test coverage detected