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 (q-s) (#87706)

This commit is contained in:
epenet
2023-02-08 17:12:54 +01:00
committed by GitHub
parent 3abf7ea18a
commit ba85fdcd61
97 changed files with 687 additions and 481 deletions

View File

@@ -780,7 +780,7 @@ def test_recorder_setup_failure_without_event_listener(hass: HomeAssistant) -> N
hass.stop()
async def test_defaults_set(hass):
async def test_defaults_set(hass: HomeAssistant) -> None:
"""Test the config defaults are set."""
recorder_config = None
@@ -1637,7 +1637,9 @@ async def test_database_lock_without_instance(recorder_mock, hass):
assert instance.unlock_database()
async def test_in_memory_database(hass, caplog):
async def test_in_memory_database(
hass: HomeAssistant, caplog: pytest.LogCaptureFixture
) -> None:
"""Test connecting to an in-memory recorder is not allowed."""
assert not await async_setup_component(
hass, recorder.DOMAIN, {recorder.DOMAIN: {recorder.CONF_DB_URL: "sqlite://"}}