1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add type hints to integration tests (recorder) (#88313)

This commit is contained in:
epenet
2023-02-17 18:50:09 +01:00
committed by GitHub
parent 0a80ac19bc
commit 185cd61cbd
18 changed files with 633 additions and 341 deletions

View File

@@ -5,12 +5,12 @@ from unittest.mock import patch
from homeassistant.core import HomeAssistant
from homeassistant.helpers import recorder
from tests.common import SetupRecorderInstanceT
from tests.typing import RecorderInstanceGenerator
async def test_async_migration_in_progress(
async_setup_recorder_instance: SetupRecorderInstanceT, hass: HomeAssistant
):
async_setup_recorder_instance: RecorderInstanceGenerator, hass: HomeAssistant
) -> None:
"""Test async_migration_in_progress wraps the recorder."""
with patch(
"homeassistant.components.recorder.util.async_migration_in_progress",