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

Function test_add_timedelta

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

Source from the content-addressed store, hash-verified

44
45
46def test_add_timedelta():
47 delta = timedelta(seconds=45, microseconds=123456)
48 d = pendulum.time(3, 12, 15, 654321)
49
50 d = d.add_timedelta(delta)
51 assert d.minute == 13
52 assert d.second == 0
53 assert d.microsecond == 777777
54
55 d = pendulum.time(3, 12, 15, 654321)
56
57 d = d + delta
58 assert d.minute == 13
59 assert d.second == 0
60 assert d.microsecond == 777777
61
62
63def test_add_timedelta_with_days():

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…