Code styling tweaks to the tests - Part 2 (#86662)

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
This commit is contained in:
Franck Nijhof 2023-01-26 01:23:53 +01:00 committed by GitHub
parent 7ab88fa713
commit e50a531cd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 734 additions and 360 deletions

View file

@ -337,8 +337,8 @@ async def test_unknown_zone(hass, calls, caplog):
)
assert (
"Automation 'My Automation' is referencing non-existing zone 'zone.no_such_zone' in a zone trigger"
not in caplog.text
"Automation 'My Automation' is referencing non-existing zone"
" 'zone.no_such_zone' in a zone trigger" not in caplog.text
)
hass.states.async_set(
@ -350,6 +350,6 @@ async def test_unknown_zone(hass, calls, caplog):
await hass.async_block_till_done()
assert (
"Automation 'My Automation' is referencing non-existing zone 'zone.no_such_zone' in a zone trigger"
in caplog.text
"Automation 'My Automation' is referencing non-existing zone"
" 'zone.no_such_zone' in a zone trigger" in caplog.text
)