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

Function test_fixed_timezone

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

Source from the content-addressed store, hash-verified

396
397
398def test_fixed_timezone():
399 tz = fixed_timezone(19800)
400 tz2 = fixed_timezone(18000)
401 dt = datetime(2016, 11, 26, tzinfo=tz)
402
403 assert tz2.utcoffset(dt).total_seconds() == 18000
404 assert tz2.dst(dt) == timedelta()
405
406
407def test_fixed_equality():

Callers

nothing calls this directly

Calls 5

fixed_timezoneFunction · 0.90
datetimeFunction · 0.85
utcoffsetMethod · 0.80
dstMethod · 0.80
total_secondsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…