Use ciso8601 library to parse datetime faster (#32128)
This commit is contained in:
parent
d996a4a9a9
commit
15b4975681
6 changed files with 10 additions and 1 deletions
|
@ -464,7 +464,7 @@ def test_time():
|
|||
def test_datetime():
|
||||
"""Test date time validation."""
|
||||
schema = vol.Schema(cv.datetime)
|
||||
for value in [date.today(), "Wrong DateTime", "2016-11-23"]:
|
||||
for value in [date.today(), "Wrong DateTime"]:
|
||||
with pytest.raises(vol.MultipleInvalid):
|
||||
schema(value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue