def test_CrontabSchedule_schedule(self):
s = CrontabSchedule(
minute='3, 7',
hour='3, 4',
day_of_week='*',
day_of_month='1, 16',
month_of_year='1, 7',
)
assert s.schedule.minute == {3, 7}
assert s.schedule.hour == {3, 4}
assert s.schedule.day_of_week == {0, 1, 2, 3, 4, 5, 6}
assert s.schedule.day_of_month == {1, 16}
assert s.schedule.month_of_year == {1, 7}
评论列表
文章目录