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

Function test_pendulum_create_skipped

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

Source from the content-addressed store, hash-verified

139
140
141def test_pendulum_create_skipped():
142 dt = pendulum.datetime(2013, 3, 31, 2, 30, 45, 123456, tz="Europe/Paris")
143
144 assert isinstance(dt, pendulum.DateTime)
145 assert_datetime(dt, 2013, 3, 31, 3, 30, 45, 123456)
146 assert dt.timezone_name == "Europe/Paris"
147 assert dt.tzinfo.utcoffset(dt) == timedelta(seconds=7200)
148 assert dt.tzinfo.dst(dt) == timedelta(seconds=3600)
149
150
151def test_pendulum_create_skipped_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…