mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Disable recorder nightly jobs in tests (#68188)
This commit is contained in:
@@ -600,6 +600,7 @@ def run_tasks_at_time(hass, test_time):
|
||||
hass.data[DATA_INSTANCE].block_till_done()
|
||||
|
||||
|
||||
@pytest.mark.parametrize("enable_nightly_purge", [True])
|
||||
def test_auto_purge(hass_recorder):
|
||||
"""Test periodic purge scheduling."""
|
||||
hass = hass_recorder()
|
||||
@@ -657,6 +658,7 @@ def test_auto_purge(hass_recorder):
|
||||
dt_util.set_default_time_zone(original_tz)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("enable_nightly_purge", [True])
|
||||
def test_auto_purge_disabled(hass_recorder):
|
||||
"""Test periodic db cleanup still run when auto purge is disabled."""
|
||||
hass = hass_recorder({CONF_AUTO_PURGE: False})
|
||||
|
||||
Reference in New Issue
Block a user