Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ test_subtract_days_max
Function
test_subtract_days_max
tests/date/test_sub.py:49–51 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
47
48
49
def
test_subtract_days_max():
50
delta = pendulum.now() - pendulum.instance(datetime.min)
51
assert pendulum.now().subtract(days=delta.days - 1).year == 1
52
53
54
def
test_subtract_weeks_positive():
Callers
nothing calls this directly
Calls
3
now
Method · 0.80
instance
Method · 0.45
subtract
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…