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

Function test_naive_subtract

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

Source from the content-addressed store, hash-verified

22
23
24def test_naive_subtract():
25 dt = pendulum.naive(2013, 3, 31, 1, 30)
26 new = dt.subtract(hours=1)
27
28 assert_datetime(new, 2013, 3, 31, 0, 30)
29
30
31def test_naive_in_timezone():

Callers

nothing calls this directly

Calls 3

assert_datetimeFunction · 0.90
naiveMethod · 0.80
subtractMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…