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

Function test_tzstr_default_end

tests/test_tz.py:1756–1766  ·  view source on GitHub ↗
(tz_str)

Source from the content-addressed store, hash-verified

1754@pytest.mark.tzstr
1755@pytest.mark.parametrize('tz_str', DEFAULT_TZSTR_RULES_EQUIV_2003)
1756def test_tzstr_default_end(tz_str):
1757 tzi = tz.tzstr(tz_str)
1758 dt_dst = datetime(2003, 10, 26, 0, 59, tzinfo=tzi)
1759 dt_dst_ambig = datetime(2003, 10, 26, 1, 00, tzinfo=tzi)
1760 dt_std_ambig = tz.enfold(dt_dst_ambig, fold=1)
1761 dt_std = datetime(2003, 10, 26, 2, 00, tzinfo=tzi)
1762
1763 assert get_timezone_tuple(dt_dst) == EDT_TUPLE
1764 assert get_timezone_tuple(dt_dst_ambig) == EDT_TUPLE
1765 assert get_timezone_tuple(dt_std_ambig) == EST_TUPLE
1766 assert get_timezone_tuple(dt_std) == EST_TUPLE
1767
1768
1769@pytest.mark.tzstr

Callers

nothing calls this directly

Calls 1

get_timezone_tupleFunction · 0.85

Tested by

no test coverage detected