MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_add_timedelta_with_days

Function test_add_timedelta_with_days

tests/time/test_sub.py:69–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68
69def test_add_timedelta_with_days():
70 delta = timedelta(days=3, seconds=45, microseconds=123456)
71 d = Time(3, 12, 15, 654321)
72
73 with pytest.raises(TypeError):
74 d.subtract_timedelta(delta)
75
76
77def test_subtract_invalid_type():

Callers

nothing calls this directly

Calls 2

subtract_timedeltaMethod · 0.95
TimeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…