mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Add test for new template validation logic
This commit is contained in:
parent
253628da11
commit
f904d06c9a
@ -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…
x
Reference in New Issue
Block a user