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 25bc956 commit 31365e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/triggers/test_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def test_dst_change(


@pytest.mark.parametrize(
"hour, start_time, correct_next_dates",
"minute, start_time, correct_next_dates",
[
(
0,
Expand All @@ -425,12 +425,12 @@ def test_dst_change(
ids=["dst_change_0", "dst_change_1"],
)
def test_dst_change2(
hour,
minute,
start_time,
correct_next_dates,
timezone,
):
trigger = CronTrigger(hour=hour, timezone=timezone)
trigger = CronTrigger(minute=minute, 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)
Expand Down

0 comments on commit 31365e6

Please sign in to comment.