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

Function test_now_dst_transitioning_off

tests/datetime/test_construct.py:120–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118
119 @time_machine.travel("2016-10-30 01:30:00Z", tick=False)
120 def test_now_dst_transitioning_off():
121 utc = pendulum.now("UTC")
122 in_paris = pendulum.now("Europe/Paris")
123 in_paris_from_utc = utc.in_tz("Europe/Paris")
124 assert in_paris.hour == 2
125 assert not in_paris.is_dst()
126 assert in_paris.isoformat() == in_paris_from_utc.isoformat()
127
128
129def test_now_with_fixed_offset():

Callers

nothing calls this directly

Calls 3

nowMethod · 0.80
in_tzMethod · 0.80
is_dstMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…