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

Function test_week

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

Source from the content-addressed store, hash-verified

4
5
6def test_week():
7 assert pendulum.duration(days=364).in_words() == "52 weeks"
8 assert pendulum.duration(days=7).in_words() == "1 week"
9
10
11def test_week_to_string():

Callers

nothing calls this directly

Calls 1

in_wordsMethod · 0.45

Tested by

no test coverage detected