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

Function test_tzname_fold_attribute_is_honored

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

Source from the content-addressed store, hash-verified

350
351
352def test_tzname_fold_attribute_is_honored():
353 tz = pendulum.timezone("US/Eastern")
354 dt = datetime(2014, 11, 2, 1, 30)
355
356 name = tz.tzname(dt)
357
358 assert name == "EDT"
359
360 name = tz.tzname(dt.replace(fold=1))
361
362 assert name == "EST"
363
364
365def test_constructor_fold_attribute_is_honored():

Callers

nothing calls this directly

Calls 4

datetimeFunction · 0.85
timezoneMethod · 0.80
tznameMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…