From 416aad32cc6607271b00e210360ae75ee339dc04 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 17 Oct 2022 22:17:08 +0200 Subject: [PATCH] Don't mock out migration in recorder tests (#80480) --- tests/common.py | 4 +--- tests/conftest.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/common.py b/tests/common.py index 4b357fe7033..4ff65049b74 100644 --- a/tests/common.py +++ b/tests/common.py @@ -933,9 +933,7 @@ def init_recorder_component(hass, add_config=None): if recorder.CONF_COMMIT_INTERVAL not in config: config[recorder.CONF_COMMIT_INTERVAL] = 0 - with patch("homeassistant.components.recorder.ALLOW_IN_MEMORY_DB", True), patch( - "homeassistant.components.recorder.migration.migrate_schema" - ): + with patch("homeassistant.components.recorder.ALLOW_IN_MEMORY_DB", True): if recorder.DOMAIN not in hass.data: recorder_helper.async_initialize_recorder(hass) assert setup_component(hass, recorder.DOMAIN, {recorder.DOMAIN: config}) diff --git a/tests/conftest.py b/tests/conftest.py index dacd9d09c91..8ce266f6b26 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -897,9 +897,7 @@ async def _async_init_recorder_component(hass, add_config=None): if recorder.CONF_COMMIT_INTERVAL not in config: config[recorder.CONF_COMMIT_INTERVAL] = 0 - with patch("homeassistant.components.recorder.ALLOW_IN_MEMORY_DB", True), patch( - "homeassistant.components.recorder.migration.migrate_schema" - ): + with patch("homeassistant.components.recorder.ALLOW_IN_MEMORY_DB", True): if recorder.DOMAIN not in hass.data: recorder_helper.async_initialize_recorder(hass) assert await async_setup_component(