(self, has_entries)
| 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() |
nothing calls this directly
no test coverage detected