1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Add type hints to integration tests (m-p) (#87705)

This commit is contained in:
epenet
2023-02-08 16:48:54 +01:00
committed by GitHub
parent 6551eb168d
commit 3abf7ea18a
99 changed files with 637 additions and 438 deletions

View File

@@ -4,13 +4,17 @@ from http import HTTPStatus
import io
from homeassistant.config import async_process_ha_core_config
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
from homeassistant.util import dt as dt_util
from tests.common import async_fire_time_changed
from tests.typing import ClientSessionGenerator
async def test_bad_posting(hass, hass_client_no_auth):
async def test_bad_posting(
hass: HomeAssistant, hass_client_no_auth: ClientSessionGenerator
) -> None:
"""Test that posting to wrong api endpoint fails."""
await async_process_ha_core_config(
hass,
@@ -41,7 +45,9 @@ async def test_bad_posting(hass, hass_client_no_auth):
assert camera_state.state == "idle" # no file supplied we are still idle
async def test_posting_url(hass, hass_client_no_auth):
async def test_posting_url(
hass: HomeAssistant, hass_client_no_auth: ClientSessionGenerator
) -> None:
"""Test that posting to api endpoint works."""
await async_process_ha_core_config(
hass,