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

Function test_subtract

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

Source from the content-addressed store, hash-verified

52
53
54def test_subtract():
55 dt = pendulum.naive(2013, 3, 31, 2, 30)
56 new = dt.subtract(days=3)
57
58 assert_datetime(new, 2013, 3, 28, 2, 30)
59
60
61def test_to_strings():

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…