def test_next_active_no_schedule(self):
     s = CronTabSchedule('')
     with self.assertRaises(CronTabScheduleException):
         s.next_active()
 def test_next_active(self):
     s = CronTabSchedule(SCHEDULE)
     s.next_active()
 def test_next_active(self):
     s = CronTabSchedule(SCHEDULE)
     s.next_active()
 def test_next_active_no_schedule(self):
     s = CronTabSchedule('')
     with self.assertRaises(CronTabScheduleException):
         s.next_active()
示例#5
0
 def test_next_active(self):
     s = CronTabSchedule(SCHEDULE)
     s.next_active(datetime.now().replace(second=25))
     s.next_active(datetime.now().replace(second=0, microsecond=0))