MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / test_parse_date

Function test_parse_date

openlibrary/utils/tests/test_dateutil.py:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def test_parse_date():
7 assert dateutil.parse_date("2010") == datetime.date(2010, 1, 1)
8 assert dateutil.parse_date("2010-02") == datetime.date(2010, 2, 1)
9 assert dateutil.parse_date("2010-02-03") == datetime.date(2010, 2, 3)
10
11
12def test_nextday():

Callers

nothing calls this directly

Calls 1

dateMethod · 0.80

Tested by

no test coverage detected