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

Function test_year_only

tests/test_isoparser.py:46–49  ·  view source on GitHub ↗
(dt)

Source from the content-addressed store, hash-verified

44DATES = [datetime(1996, 1, 1), datetime(2017, 1, 1)]
45@pytest.mark.parametrize('dt', tuple(DATES))
46def test_year_only(dt):
47 dtstr = dt.strftime('%Y')
48
49 assert isoparse(dtstr) == dt
50
51DATES += [datetime(2000, 2, 1), datetime(2017, 4, 1)]
52@pytest.mark.parametrize('dt', tuple(DATES))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected