Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
def
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
12
def
test_week_and_day():
Callers
nothing calls this directly
Calls
3
datetime
Method · 0.45
add
Method · 0.45
in_words
Method · 0.45
Tested by
no test coverage detected