mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 14:47:38 +00:00
Avoid nesting sessions in recorder auto repairs tests (#122596)
This commit is contained in:
parent
e015c0a6ae
commit
81983d66f4
@ -176,14 +176,14 @@ async def test_validate_db_schema_fix_utf8_issue_with_broken_schema_unrepairable
|
|||||||
"LOCK=EXCLUSIVE;"
|
"LOCK=EXCLUSIVE;"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
_modify_columns(
|
_modify_columns(
|
||||||
session_maker,
|
session_maker,
|
||||||
recorder_mock.engine,
|
recorder_mock.engine,
|
||||||
"states",
|
"states",
|
||||||
[
|
[
|
||||||
"entity_id VARCHAR(255) NOT NULL",
|
"entity_id VARCHAR(255) NOT NULL",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
await recorder_mock.async_add_executor_job(_break_states_schema)
|
await recorder_mock.async_add_executor_job(_break_states_schema)
|
||||||
schema_errors = await recorder_mock.async_add_executor_job(
|
schema_errors = await recorder_mock.async_add_executor_job(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user