MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_ymd_one_character

Function test_ymd_one_character

tests/parsing/test_parsing.py:58–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def test_ymd_one_character():
59 text = "2016-2-6"
60
61 parsed = parse(text, strict=False)
62
63 assert parsed.year == 2016
64 assert parsed.month == 2
65 assert parsed.day == 6
66 assert parsed.hour == 0
67 assert parsed.minute == 0
68 assert parsed.second == 0
69 assert parsed.microsecond == 0
70 assert parsed.tzinfo is None
71
72
73def test_ymd_hms():

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…