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

Function test_naive_add

tests/datetime/test_naive.py:17–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def test_naive_add():
18 dt = pendulum.naive(2013, 3, 31, 1, 30)
19 new = dt.add(hours=1)
20
21 assert_datetime(new, 2013, 3, 31, 2, 30)
22
23
24def test_naive_subtract():

Callers

nothing calls this directly

Calls 3

assert_datetimeFunction · 0.90
naiveMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…