MCPcopy Create free account
hub / github.com/python-pendulum/pendulum / test_in_french

Function test_in_french

tests/duration/test_in_words.py:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def test_in_french():
30 pi = pendulum.duration(
31 years=2, months=3, days=1177, seconds=7284, microseconds=1000000
32 )
33
34 expected = "2 ans 3 mois 168 semaines 1 jour 2 heures 1 minute 25 secondes"
35 assert pi.in_words(locale="fr") == expected
36
37
38def test_repr():

Callers

nothing calls this directly

Calls 1

in_wordsMethod · 0.45

Tested by

no test coverage detected