Improve mqtt test (#42490)
This commit is contained in:
parent
f0b676607d
commit
d4efa938dd
3 changed files with 17 additions and 3 deletions
|
@ -2698,3 +2698,13 @@ async def test_result_wrappers(hass):
|
|||
assert result == native
|
||||
assert result.render_result == text
|
||||
schema(result) # should not raise
|
||||
|
||||
|
||||
async def test_parse_result(hass):
|
||||
"""Test parse result."""
|
||||
for tpl, result in (
|
||||
('{{ "{{}}" }}', "{{}}"),
|
||||
("not-something", "not-something"),
|
||||
("2a", "2a"),
|
||||
):
|
||||
assert template.Template(tpl, hass).async_render() == result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue