Add type hints to integration tests (part 8) (#87982)

This commit is contained in:
epenet 2023-02-13 11:13:48 +01:00 committed by GitHub
parent 575f7c4205
commit 89e4ee5320
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 696 additions and 339 deletions

View file

@ -8,9 +8,10 @@ from homeassistant.setup import async_setup_component
from .test_http import DUMMY_CONFIG
from tests.common import MockConfigEntry
from tests.test_util.aiohttp import AiohttpClientMocker
async def test_import(hass: HomeAssistant):
async def test_import(hass: HomeAssistant) -> None:
"""Test import."""
await async_setup_component(
@ -24,7 +25,7 @@ async def test_import(hass: HomeAssistant):
assert entries[0].data[ga.const.CONF_PROJECT_ID] == "1234"
async def test_import_changed(hass: HomeAssistant):
async def test_import_changed(hass: HomeAssistant) -> None:
"""Test import with changed project id."""
old_entry = MockConfigEntry(
@ -44,7 +45,9 @@ async def test_import_changed(hass: HomeAssistant):
assert entries[0].data[ga.const.CONF_PROJECT_ID] == "1234"
async def test_request_sync_service(aioclient_mock, hass):
async def test_request_sync_service(
aioclient_mock: AiohttpClientMocker, hass: HomeAssistant
) -> None:
"""Test that it posts to the request_sync url."""
aioclient_mock.post(
ga.const.HOMEGRAPH_TOKEN_URL,