MCPcopy Create free account
hub / github.com/dateutil/dateutil / test_tzoffset_sub_minute

Function test_tzoffset_sub_minute

tests/test_tz.py:793–796  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

791
792@pytest.mark.tzoffset
793def test_tzoffset_sub_minute():
794 delta = timedelta(hours=12, seconds=30)
795 test_datetime = datetime(2000, 1, 1, tzinfo=tz.tzoffset(None, delta))
796 assert test_datetime.utcoffset() == delta
797
798
799@pytest.mark.tzlocal

Callers

nothing calls this directly

Calls 2

tzoffsetMethod · 0.80
utcoffsetMethod · 0.45

Tested by

no test coverage detected