Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ test_diff_in_weeks_positive
Function
test_diff_in_weeks_positive
tests/datetime/test_diff.py:85–87 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
83
84
85
def
test_diff_in_weeks_positive():
86
dt = pendulum.datetime(2000, 1, 1)
87
assert dt.diff(dt.add(years=1)).in_weeks() == 52
88
89
90
def
test_diff_in_weeks_negative_with_sign():
Callers
nothing calls this directly
Calls
4
datetime
Method · 0.45
in_weeks
Method · 0.45
diff
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…