Skip to content

Commit

Permalink
Update test_cron.py
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm authored Jan 19, 2025
1 parent 8477152 commit de81df1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/triggers/test_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,9 @@ def test_dst_change2(
trigger = CronTrigger.from_crontab(cron_expression, timezone=timezone)
trigger.start_time = start_time.replace(tzinfo=timezone)
for correct_next_date, fold in correct_next_dates:
correct_next_date = correct_next_date.replace(tzinfo=timezone, fold=fold)
next_date = trigger.next()
assert next_date == correct_next_date.replace(tzinfo=timezone, fold=fold)
assert next_date == correct_next_date
assert str(next_date) == str(correct_next_date)


Expand Down

0 comments on commit de81df1

Please sign in to comment.