Purge recorder database at night (#33646)

This commit is contained in:
Anders Melchiorsen authored and GitHub committed 2020-04-16 15:11:36 -07:00
1 parent 374fe47809
commit 6e2cf9663a
3 files changed
+71 -46

No files matched your search

+4 -1
View File
@@ -26,7 +26,10 @@ async def test_schema_update_calls(hass):
"""Test that schema migrations occur in correct order."""
with patch(
"homeassistant.components.recorder.create_engine", new=create_engine_test
), patch("homeassistant.components.recorder.migration._apply_update") as update:
), patch(
"homeassistant.components.recorder.migration._apply_update",
wraps=migration._apply_update,
) as update:
await async_setup_component(
hass, "recorder", {"recorder": {"db_url": "sqlite://"}}
)