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

Function test_dst

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

Source from the content-addressed store, hash-verified

237
238
239def test_dst():
240 tz = pendulum.timezone("Europe/Amsterdam")
241 dst = tz.dst(datetime(1940, 7, 1))
242 native_tz = zoneinfo.ZoneInfo("Europe/Amsterdam")
243
244 assert dst == native_tz.dst(datetime(1940, 7, 1))
245
246
247def test_short_timezones_should_not_modify_time():

Callers

nothing calls this directly

Calls 3

datetimeFunction · 0.85
timezoneMethod · 0.80
dstMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…