mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Log script condition warnings with the instance logger (#154966)
This commit is contained in:
@@ -3181,12 +3181,9 @@ async def test_repeat_limits(
|
||||
|
||||
title_condition = condition.title()
|
||||
|
||||
assert f"{title_condition} condition" in caplog.text
|
||||
assert f"in script `Test {condition}` looped 5 times" in caplog.text
|
||||
assert (
|
||||
f"script `Test {condition}` terminated because it looped 10 times"
|
||||
in caplog.text
|
||||
)
|
||||
assert f"Test {condition}: {title_condition} condition" in caplog.text
|
||||
assert "looped 5 times" in caplog.text
|
||||
assert "terminated because it looped 10 times" in caplog.text
|
||||
|
||||
assert len(events) == 10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user