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

Function test_locale

tests/test_helpers.py:139–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138
139def test_locale() -> None:
140 dt = pendulum.datetime(2000, 11, 10, 12, 34, 56, 123456)
141 pendulum.set_locale("fr")
142
143 assert pendulum.get_locale() == "fr"
144
145 assert dt.format("MMMM") == "novembre"
146 assert dt.date().format("MMMM") == "novembre"
147
148
149def test_set_locale_invalid() -> None:

Callers

nothing calls this directly

Calls 3

dateMethod · 0.80
datetimeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…