Ejemplo n.º 1
0
 def test_next_active_no_schedule(self):
     s = CronTabSchedule('')
     with self.assertRaises(CronTabScheduleException):
         s.next_active()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 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))