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

Function test_parse_yearfirst

tests/test_parser.py:178–183  ·  view source on GitHub ↗
(sep)

Source from the content-addressed store, hash-verified

176
177@pytest.mark.parametrize('sep', ['-', '.', '/', ' '])
178def test_parse_yearfirst(sep):
179 expected = datetime(2010, 9, 3)
180 fmt = sep.join(['%Y', '%m', '%d'])
181 dstr = expected.strftime(fmt)
182 result = parse(dstr, yearfirst=True)
183 assert result == expected
184
185
186@pytest.mark.parametrize('dstr,expected', [

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected