Exemplo n.º 1
0
 def take_pending(self):
     """Take the range of times up to and including now."""
     now = utils.timefn()
     return self.take_until(now + 1)
Exemplo n.º 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)
Exemplo n.º 3
0
def next_schedulable_timefn():
    return utils.timefn() + 1