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

Function test_week

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

Source from the content-addressed store, hash-verified

4
5
6def test_week():
7 start_date = pendulum.datetime(2012, 1, 1)
8 interval = pendulum.interval(start=start_date, end=start_date.add(weeks=1))
9 assert interval.in_words() == "1 week"
10
11
12def test_week_and_day():

Callers

nothing calls this directly

Calls 3

datetimeMethod · 0.45
addMethod · 0.45
in_wordsMethod · 0.45

Tested by

no test coverage detected