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

Function test_add_timedelta_with_days

tests/time/test_add.py:63–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def test_add_timedelta_with_days():
64 delta = timedelta(days=3, seconds=45, microseconds=123456)
65 d = pendulum.time(3, 12, 15, 654321)
66
67 with pytest.raises(TypeError):
68 d.add_timedelta(delta)
69
70
71def test_addition_invalid_type():

Callers

nothing calls this directly

Calls 2

timeMethod · 0.80
add_timedeltaMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…