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

Function _zone_for_stream_tests

tests/test_tzfile.py:1526–1535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1524
1525
1526def _zone_for_stream_tests():
1527 STD = ZoneOffset("STD", -5 * ONE_H)
1528 DST = ZoneOffset("DST", -4 * ONE_H, ONE_H)
1529 return construct_zone(
1530 [
1531 ZoneTransition(datetime(2020, 3, 8, 2), STD, DST),
1532 ZoneTransition(datetime(2020, 11, 1, 2), DST, STD),
1533 ],
1534 "STD5DST,M3.2.0,M11.1.0",
1535 ).read()
1536
1537
1538def test_tzfile_from_pipe():

Callers 2

test_tzfile_from_pipeFunction · 0.85

Calls 4

ZoneOffsetClass · 0.85
construct_zoneFunction · 0.85
ZoneTransitionClass · 0.85
readMethod · 0.45

Tested by

no test coverage detected