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

Function test_repeated_time

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

Source from the content-addressed store, hash-verified

89
90
91def test_repeated_time():
92 dt = datetime(2013, 10, 27, 2, 30, 45, 123456, fold=1)
93 tz = timezone("Europe/Paris")
94 dt = tz.convert(dt)
95
96 assert dt.year == 2013
97 assert dt.month == 10
98 assert dt.day == 27
99 assert dt.hour == 2
100 assert dt.minute == 30
101 assert dt.second == 45
102 assert dt.microsecond == 123456
103 assert dt.tzinfo.name == "Europe/Paris"
104 assert dt.tzinfo.utcoffset(dt) == timedelta(seconds=3600)
105 assert dt.tzinfo.dst(dt) == timedelta()
106
107
108def test_repeated_time_pre_rule():

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…