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

Function test_add_to_fixed_timezones

tests/datetime/test_add.py:137–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def test_add_to_fixed_timezones():
138 dt = pendulum.parse("2015-03-08T01:00:00-06:00")
139 dt = dt.add(weeks=1)
140 dt = dt.add(hours=1)
141
142 assert_datetime(dt, 2015, 3, 15, 2, 0, 0)
143 assert dt.timezone_name == "-06:00"
144 assert dt.offset == -6 * 3600
145
146
147def test_add_time_to_new_transition_skipped():

Callers

nothing calls this directly

Calls 3

assert_datetimeFunction · 0.90
parseMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…