MCPcopy 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
49def 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
54def test_subtract_weeks_positive():

Callers

nothing calls this directly

Calls 3

nowMethod · 0.80
instanceMethod · 0.45
subtractMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…