We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41babb commit aa42debCopy full SHA for aa42deb
1 file changed
tests/formatting/test_formatter.py
@@ -90,9 +90,11 @@ def test_day_of_year():
90
91
def test_week_of_year():
92
f = Formatter()
93
- d = pendulum.datetime(2016, 8, 28)
+ d = pendulum.datetime(2016, 2, 28)
94
95
- assert f.format(d, "wo") == "34th"
+ assert f.format(d, "W") == "8"
96
+ assert f.format(d, "WW") == "08"
97
+ assert f.format(d, "wo") == "8th"
98
99
100
def test_day_of_week():
0 commit comments