Skip to content

Commit 2f5e7c0

Browse files
committed
tests added.
1 parent 1f6960e commit 2f5e7c0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_crontab.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,20 @@ def test_cron_iterator_start_from(expr, start_from, result, years_ext, seconds_e
460460
True,
461461
True,
462462
),
463+
(
464+
'0 0 * * MON',
465+
dt.datetime(year=2021, month=2, day=28, hour=0, minute=0, second=0, microsecond=0, tzinfo=dt.timezone.utc),
466+
dt.datetime(year=2021, month=3, day=1, hour=0, minute=0, second=0, microsecond=0, tzinfo=dt.timezone.utc),
467+
False,
468+
False,
469+
),
470+
(
471+
'0 0 * * WED,THU',
472+
dt.datetime(year=2021, month=3, day=31, hour=0, minute=0, second=0, microsecond=1, tzinfo=dt.timezone.utc),
473+
dt.datetime(year=2021, month=4, day=1, hour=0, minute=0, second=0, microsecond=0, tzinfo=dt.timezone.utc),
474+
False,
475+
False,
476+
),
463477
],
464478
)
465479
@freezegun.freeze_time('2020-01-01 00:00:00.000Z+00:00')

0 commit comments

Comments
 (0)