MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_localized_day_of_week

Function test_localized_day_of_week

tests/formatting/test_formatter.py:116–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114
115
116def test_localized_day_of_week():
117 f = Formatter()
118 d = pendulum.datetime(2016, 8, 28)
119 assert f.format(d, "e") == "0"
120 assert f.format(d, "e", locale="en-gb") == "6"
121 assert f.format(d.add(days=2), "e") == "2"
122 assert f.format(d.add(days=2), "e", locale="en-gb") == "1"
123
124 assert f.format(d, "eo") == "1st"
125 assert f.format(d, "eo", locale="en-gb") == "7th"
126 assert f.format(d.add(days=2), "eo") == "3rd"
127 assert f.format(d.add(days=2), "eo", locale="en-gb") == "2nd"
128
129
130def test_day_of_iso_week():

Callers

nothing calls this directly

Calls 4

formatMethod · 0.95
FormatterClass · 0.90
datetimeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…