Improve config validation for key_value_schemas (#49429)
This commit is contained in:
parent
ed9b199372
commit
45e1473f83
2 changed files with 9 additions and 9 deletions
|
@ -1024,7 +1024,7 @@ def test_key_value_schemas():
|
|||
schema(True)
|
||||
assert str(excinfo.value) == "Expected a dictionary"
|
||||
|
||||
for mode in None, "invalid":
|
||||
for mode in None, {"a": "dict"}, "invalid":
|
||||
with pytest.raises(vol.Invalid) as excinfo:
|
||||
schema({"mode": mode})
|
||||
assert (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue