def take_pending(self):
     """Take the range of times up to and including now."""
     now = utils.timefn()
     return self.take_until(now + 1)
Exemple #2
0
def test_undefined_start_is_now():
    entry = ScheduleEntry(name='t', action='logger')
    now = utils.timefn()
    assert entry.start in (now - 1, now, now + 1)
def next_schedulable_timefn():
    return utils.timefn() + 1