mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Fix broken trace tests (#48458)
This commit is contained in:
@@ -31,6 +31,12 @@ def assert_element(trace_element, expected_element, path):
|
||||
assert trace_element._error is None
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def prepare_condition_trace():
|
||||
"""Clear previous trace."""
|
||||
trace.trace_clear()
|
||||
|
||||
|
||||
def assert_condition_trace(expected):
|
||||
"""Assert a trace condition sequence is as expected."""
|
||||
condition_trace = trace.trace_get(clear=False)
|
||||
|
||||
Reference in New Issue
Block a user