diff options
Diffstat (limited to '')
-rw-r--r-- | tests/datetime/test_day_of_week_modifiers.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/datetime/test_day_of_week_modifiers.py b/tests/datetime/test_day_of_week_modifiers.py index 46de84e..eb4bc4f 100644 --- a/tests/datetime/test_day_of_week_modifiers.py +++ b/tests/datetime/test_day_of_week_modifiers.py @@ -49,7 +49,7 @@ def test_next_monday(): def test_next_saturday(): - d = pendulum.datetime(1975, 5, 21).next(6) + d = pendulum.datetime(1975, 5, 21).next(5) assert_datetime(d, 1975, 5, 24, 0, 0, 0) @@ -79,7 +79,7 @@ def test_previous_monday(): def test_previous_saturday(): - d = pendulum.datetime(1975, 5, 21).previous(6) + d = pendulum.datetime(1975, 5, 21).previous(5) assert_datetime(d, 1975, 5, 17, 0, 0, 0) @@ -109,7 +109,7 @@ def test_first_wednesday_of_month(): def test_first_friday_of_month(): - d = pendulum.datetime(1975, 11, 21).first_of("month", 5) + d = pendulum.datetime(1975, 11, 21).first_of("month", 4) assert_datetime(d, 1975, 11, 7, 0, 0, 0) @@ -124,7 +124,7 @@ def test_last_tuesday_of_month(): def test_last_friday_of_month(): - d = pendulum.datetime(1975, 12, 5).last_of("month", 5) + d = pendulum.datetime(1975, 12, 5).last_of("month", 4) assert_datetime(d, 1975, 12, 26, 0, 0, 0) @@ -155,7 +155,7 @@ def test_2nd_monday_of_month(): def test_3rd_wednesday_of_month(): - d = pendulum.datetime(1975, 12, 5).nth_of("month", 3, 3) + d = pendulum.datetime(1975, 12, 5).nth_of("month", 3, 2) assert_datetime(d, 1975, 12, 17, 0, 0, 0) @@ -171,7 +171,7 @@ def test_first_wednesday_of_quarter(): def test_first_friday_of_quarter(): - d = pendulum.datetime(1975, 11, 21).first_of("quarter", 5) + d = pendulum.datetime(1975, 11, 21).first_of("quarter", 4) assert_datetime(d, 1975, 10, 3, 0, 0, 0) @@ -231,7 +231,7 @@ def test_2nd_monday_of_quarter(): def test_3rd_wednesday_of_quarter(): - d = pendulum.datetime(1975, 8, 5).nth_of("quarter", 3, 3) + d = pendulum.datetime(1975, 8, 5).nth_of("quarter", 3, 2) assert_datetime(d, 1975, 7, 16, 0, 0, 0) @@ -246,7 +246,7 @@ def test_first_wednesday_of_year(): def test_first_friday_of_year(): - d = pendulum.datetime(1975, 11, 21).first_of("year", 5) + d = pendulum.datetime(1975, 11, 21).first_of("year", 4) assert_datetime(d, 1975, 1, 3, 0, 0, 0) @@ -261,7 +261,7 @@ def test_last_tuesday_of_year(): def test_last_friday_of_year(): - d = pendulum.datetime(1975, 8, 5).last_of("year", 5) + d = pendulum.datetime(1975, 8, 5).last_of("year", 4) assert_datetime(d, 1975, 12, 26, 0, 0, 0) |