Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
def
test_week():
7
assert pendulum.duration(days=364).in_words() ==
"52 weeks"
8
assert pendulum.duration(days=7).in_words() ==
"1 week"
9
10
11
def
test_week_to_string():
Callers
nothing calls this directly
Calls
1
in_words
Method · 0.45
Tested by
no test coverage detected