コード例 #1
0
 def test_next_active_no_schedule(self):
     s = CronTabSchedule('')
     with self.assertRaises(CronTabScheduleException):
         s.next_active()
コード例 #2
0
 def test_next_active(self):
     s = CronTabSchedule(SCHEDULE)
     s.next_active()
コード例 #3
0
 def test_next_active(self):
     s = CronTabSchedule(SCHEDULE)
     s.next_active()
コード例 #4
0
 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))