def test_weekly_schedule_works(self):
     sched = schedule.weekly(0, 1, 1)
     self._expect(sched,
                  'Weekly',
                  xweekday='Sunday',
                  xhour=1,
                  xminute=1,
                  xperiod='AM')
Ejemplo n.º 2
0
 def test_can_reschedule_to_weekly(self):
     self._reschedule_test(schedule.weekly(0, hour=1, minute=1))
 def test_can_reschedule_to_weekly(self):
     self._reschedule_test(schedule.weekly(0, hour=1, minute=1))
Ejemplo n.º 4
0
 def test_weekly_repr_matches_expected(self):
     sched = schedule.weekly(0, 1, 1)
     self.assertEqual(repr(sched), ("<Schedule frequency:Weekly weekday:Sunday " "time:01:01 AM>"))
Ejemplo n.º 5
0
 def test_weekly_schedule_works(self):
     sched = schedule.weekly(0, 1, 1)
     self._expect(sched, "Weekly", xweekday="Sunday", xhour=1, xminute=1, xperiod="AM")
 def test_weekly_repr_matches_expected(self):
     sched = schedule.weekly(0, 1, 1)
     self.assertEqual(repr(sched),
                      ('<Schedule frequency:Weekly weekday:Sunday '
                       'time:01:01 AM>'))