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

Function test_tzstr_default_start

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

Source from the content-addressed store, hash-verified

1743@pytest.mark.tzstr
1744@pytest.mark.parametrize('tz_str', DEFAULT_TZSTR_RULES_EQUIV_2003)
1745def test_tzstr_default_start(tz_str):
1746 tzi = tz.tzstr(tz_str)
1747 dt_std = datetime(2003, 4, 6, 1, 59, tzinfo=tzi)
1748 dt_dst = datetime(2003, 4, 6, 2, 00, tzinfo=tzi)
1749
1750 assert get_timezone_tuple(dt_std) == EST_TUPLE
1751 assert get_timezone_tuple(dt_dst) == EDT_TUPLE
1752
1753
1754@pytest.mark.tzstr

Callers

nothing calls this directly

Calls 1

get_timezone_tupleFunction · 0.85

Tested by

no test coverage detected