mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
String formatting improvements for tests (#33663)
This commit is contained in:
@@ -162,7 +162,7 @@ async def test_accessing_forbidden_methods(hass, caplog):
|
||||
caplog.records.clear()
|
||||
hass.async_add_job(execute, hass, "test.py", source, {})
|
||||
await hass.async_block_till_done()
|
||||
assert "Not allowed to access {}".format(name) in caplog.text
|
||||
assert f"Not allowed to access {name}" in caplog.text
|
||||
|
||||
|
||||
async def test_iterating(hass):
|
||||
|
||||
Reference in New Issue
Block a user