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

Function test_subtraction

tests/date/test_diff.py:359–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

357
358
359def test_subtraction():
360 d = pendulum.date(2016, 7, 5)
361 future_dt = date(2016, 7, 6)
362 future = d.add(days=1)
363
364 assert (future - d).total_seconds() == 86400
365 assert (future_dt - d).total_seconds() == 86400

Callers

nothing calls this directly

Calls 4

dateFunction · 0.85
dateMethod · 0.80
addMethod · 0.45
total_secondsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…