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

Function test_week_and_day

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

Source from the content-addressed store, hash-verified

10
11
12def test_week_and_day():
13 start_date = pendulum.datetime(2012, 1, 1)
14 interval = pendulum.interval(start=start_date, end=start_date.add(weeks=1, days=1))
15 assert interval.in_words() == "1 week 1 day"
16
17
18def test_all():

Callers

nothing calls this directly

Calls 3

datetimeMethod · 0.45
addMethod · 0.45
in_wordsMethod · 0.45

Tested by

no test coverage detected