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

Function test_subtraction_with_timezone

tests/datetime/test_diff.py:861–880  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

859
860
861def test_subtraction_with_timezone():
862 dt = pendulum.datetime(2013, 3, 31, 1, 59, 59, 999999, tz="Europe/Paris")
863 post = dt.add(microseconds=1)
864
865 assert (post - dt).total_seconds() == 1e-06
866
867 dt = pendulum.datetime(
868 2013,
869 10,
870 27,
871 2,
872 59,
873 59,
874 999999,
875 tz="Europe/Paris",
876 fold=0,
877 )
878 post = dt.add(microseconds=1)
879
880 assert (post - dt).total_seconds() == 1e-06

Callers

nothing calls this directly

Calls 3

datetimeMethod · 0.45
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…