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

Function test_pendulum_create_repeated

tests/tz/test_timezone.py:175–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173
174
175def test_pendulum_create_repeated():
176 dt = pendulum.datetime(2013, 10, 27, 2, 30, 45, 123456, tz="Europe/Paris")
177
178 assert_datetime(dt, 2013, 10, 27, 2, 30, 45, 123456)
179 assert dt.timezone_name == "Europe/Paris"
180 assert dt.tzinfo.utcoffset(dt) == timedelta(seconds=3600)
181 assert dt.tzinfo.dst(dt) == timedelta()
182
183
184def test_pendulum_create_repeated_with_pre_rule():

Callers

nothing calls this directly

Calls 4

assert_datetimeFunction · 0.90
utcoffsetMethod · 0.80
dstMethod · 0.80
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…