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

Function test_skipped_time_with_post_rule

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

Source from the content-addressed store, hash-verified

65
66
67def test_skipped_time_with_post_rule():
68 dt = datetime(2013, 3, 31, 2, 30, 45, 123456, fold=1)
69 tz = timezone("Europe/Paris")
70 dt = tz.convert(dt)
71
72 assert dt.year == 2013
73 assert dt.month == 3
74 assert dt.day == 31
75 assert dt.hour == 3
76 assert dt.minute == 30
77 assert dt.second == 45
78 assert dt.microsecond == 123456
79 assert dt.tzinfo.name == "Europe/Paris"
80 assert dt.tzinfo.utcoffset(dt) == timedelta(seconds=7200)
81 assert dt.tzinfo.dst(dt) == timedelta(seconds=3600)
82
83
84def test_skipped_time_with_error():

Callers

nothing calls this directly

Calls 5

timezoneFunction · 0.90
datetimeFunction · 0.85
utcoffsetMethod · 0.80
dstMethod · 0.80
convertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…