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

Function test_parse_dayfirst

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

Source from the content-addressed store, hash-verified

167
168@pytest.mark.parametrize('sep', ['-', '.', '/', ' '])
169def test_parse_dayfirst(sep):
170 expected = datetime(2003, 9, 10)
171 fmt = sep.join(['%d', '%m', '%Y'])
172 dstr = expected.strftime(fmt)
173 result = parse(dstr, dayfirst=True)
174 assert result == expected
175
176
177@pytest.mark.parametrize('sep', ['-', '.', '/', ' '])

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected