mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Fix search/replace mistake in recorder tests (#116933)
This commit is contained in:
parent
2e945aed54
commit
1cea22b8ba
@ -58,7 +58,7 @@ def setup_recorder(recorder_mock: Recorder) -> None:
|
|||||||
"""Set up recorder."""
|
"""Set up recorder."""
|
||||||
|
|
||||||
|
|
||||||
async def testsession_scope_not_setup(
|
async def test_session_scope_not_setup(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
setup_recorder: None,
|
setup_recorder: None,
|
||||||
) -> None:
|
) -> None:
|
||||||
@ -71,7 +71,7 @@ async def testsession_scope_not_setup(
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
async def testrecorder_bad_execute(hass: HomeAssistant, setup_recorder: None) -> None:
|
async def test_recorder_bad_execute(hass: HomeAssistant, setup_recorder: None) -> None:
|
||||||
"""Bad execute, retry 3 times."""
|
"""Bad execute, retry 3 times."""
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
from sqlalchemy.exc import SQLAlchemyError
|
||||||
|
|
||||||
@ -715,7 +715,7 @@ async def test_no_issue_for_mariadb_with_MDEV_25020(
|
|||||||
assert database_engine.optimizer.slow_range_in_select is False
|
assert database_engine.optimizer.slow_range_in_select is False
|
||||||
|
|
||||||
|
|
||||||
async def testbasic_sanity_check(
|
async def test_basic_sanity_check(
|
||||||
hass: HomeAssistant, setup_recorder: None, recorder_db_url
|
hass: HomeAssistant, setup_recorder: None, recorder_db_url
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test the basic sanity checks with a missing table."""
|
"""Test the basic sanity checks with a missing table."""
|
||||||
@ -733,7 +733,7 @@ async def testbasic_sanity_check(
|
|||||||
util.basic_sanity_check(cursor)
|
util.basic_sanity_check(cursor)
|
||||||
|
|
||||||
|
|
||||||
async def testcombined_checks(
|
async def test_combined_checks(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
setup_recorder: None,
|
setup_recorder: None,
|
||||||
caplog: pytest.LogCaptureFixture,
|
caplog: pytest.LogCaptureFixture,
|
||||||
@ -801,7 +801,7 @@ async def testcombined_checks(
|
|||||||
util.run_checks_on_open_db("fake_db_path", cursor)
|
util.run_checks_on_open_db("fake_db_path", cursor)
|
||||||
|
|
||||||
|
|
||||||
async def testend_incomplete_runs(
|
async def test_end_incomplete_runs(
|
||||||
hass: HomeAssistant, setup_recorder: None, caplog: pytest.LogCaptureFixture
|
hass: HomeAssistant, setup_recorder: None, caplog: pytest.LogCaptureFixture
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Ensure we can end incomplete runs."""
|
"""Ensure we can end incomplete runs."""
|
||||||
@ -825,7 +825,7 @@ async def testend_incomplete_runs(
|
|||||||
assert "Ended unfinished session" in caplog.text
|
assert "Ended unfinished session" in caplog.text
|
||||||
|
|
||||||
|
|
||||||
async def testperiodic_db_cleanups(
|
async def test_periodic_db_cleanups(
|
||||||
hass: HomeAssistant, setup_recorder: None, recorder_db_url
|
hass: HomeAssistant, setup_recorder: None, recorder_db_url
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test periodic db cleanups."""
|
"""Test periodic db cleanups."""
|
||||||
@ -904,7 +904,7 @@ def test_build_mysqldb_conv() -> None:
|
|||||||
|
|
||||||
|
|
||||||
@patch("homeassistant.components.recorder.util.QUERY_RETRY_WAIT", 0)
|
@patch("homeassistant.components.recorder.util.QUERY_RETRY_WAIT", 0)
|
||||||
async def testexecute_stmt_lambda_element(
|
async def test_execute_stmt_lambda_element(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
setup_recorder: None,
|
setup_recorder: None,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user