Add test for new template validation logic
This commit is contained in:
parent
253628da11
commit
f904d06c9a
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ def test_template():
|
|||
schema = vol.Schema(cv.template)
|
||||
|
||||
for value in (
|
||||
None, '{{ partial_print }', '{% if True %}Hello'
|
||||
None, '{{ partial_print }', '{% if True %}Hello', {'dict': 'isbad'}
|
||||
):
|
||||
with pytest.raises(vol.MultipleInvalid):
|
||||
schema(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue