Skip to content

Commit 8e660f3

Browse files
committed
Adjust tests
1 parent ff67135 commit 8e660f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/formatting/test_formatter.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ def test_day_of_year():
9090

9191
def test_week_of_year():
9292
f = Formatter()
93-
d = pendulum.datetime(2016, 8, 28)
93+
d = pendulum.datetime(2016, 2, 28)
9494

95-
assert f.format(d, "wo") == "34th"
95+
assert f.format(d, "W") == "8"
96+
assert f.format(d, "WW") == "08"
97+
assert f.format(d, "wo") == "8th"
9698

9799

98100
def test_day_of_week():

0 commit comments

Comments
 (0)