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

Function test_ymd_hms

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

Source from the content-addressed store, hash-verified

71
72
73def test_ymd_hms():
74 text = "2016-10-06 12:34:56"
75
76 parsed = parse(text)
77
78 assert parsed.year == 2016
79 assert parsed.month == 10
80 assert parsed.day == 6
81 assert parsed.hour == 12
82 assert parsed.minute == 34
83 assert parsed.second == 56
84 assert parsed.microsecond == 0
85 assert parsed.tzinfo is None
86
87 text = "2016-10-06 12:34:56.123456"
88
89 parsed = parse(text)
90
91 assert parsed.year == 2016
92 assert parsed.month == 10
93 assert parsed.day == 6
94 assert parsed.hour == 12
95 assert parsed.minute == 34
96 assert parsed.second == 56
97 assert parsed.microsecond == 123456
98 assert parsed.tzinfo is None
99
100
101def test_rfc_3339():

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…