Add type hints to integration tests (part 25) (#88308)

This commit is contained in:
epenet 2023-02-17 16:52:28 +01:00 committed by GitHub
parent aeb09678a8
commit 5b80b1f55a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 444 additions and 278 deletions

View file

@ -23,6 +23,7 @@ from .common import ComponentFactory, get_data_manager_by_user_id, new_profile_c
from tests.common import MockConfigEntry
from tests.test_util.aiohttp import AiohttpClientMocker
from tests.typing import ClientSessionGenerator
async def test_config_entry_withings_api(hass: HomeAssistant) -> None:
@ -67,12 +68,12 @@ async def test_config_entry_withings_api(hass: HomeAssistant) -> None:
async def test_webhook_post(
hass: HomeAssistant,
component_factory: ComponentFactory,
aiohttp_client,
aiohttp_client: ClientSessionGenerator,
user_id: int,
arg_user_id: Any,
arg_appli: Any,
expected_code: int,
current_request_with_host,
current_request_with_host: None,
) -> None:
"""Test webhook callback."""
person0 = new_profile_config("person0", user_id)
@ -105,8 +106,8 @@ async def test_webhook_post(
async def test_webhook_head(
hass: HomeAssistant,
component_factory: ComponentFactory,
aiohttp_client,
current_request_with_host,
aiohttp_client: ClientSessionGenerator,
current_request_with_host: None,
) -> None:
"""Test head method on webhook view."""
person0 = new_profile_config("person0", 0)
@ -123,8 +124,8 @@ async def test_webhook_head(
async def test_webhook_put(
hass: HomeAssistant,
component_factory: ComponentFactory,
aiohttp_client,
current_request_with_host,
aiohttp_client: ClientSessionGenerator,
current_request_with_host: None,
) -> None:
"""Test webhook callback."""
person0 = new_profile_config("person0", 0)