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

Function test_all

tests/interval/test_in_words.py:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_all():
19 start_date = pendulum.datetime(2012, 1, 1)
20 interval = pendulum.interval(
21 start=start_date,
22 end=start_date.add(years=1, months=1, days=1, seconds=1, microseconds=1),
23 )
24 assert interval.in_words() == "1 year 1 month 1 day 1 second"
25
26
27def test_in_french():

Callers

nothing calls this directly

Calls 3

datetimeMethod · 0.45
addMethod · 0.45
in_wordsMethod · 0.45

Tested by

no test coverage detected