Add type hints to integration tests (f-g) (#87700)
This commit is contained in:
parent
3052de3e8e
commit
7a4d15a657
75 changed files with 609 additions and 415 deletions
|
@ -7,9 +7,12 @@ from unittest.mock import patch
|
|||
from homeassistant import config_entries
|
||||
from homeassistant.components.flo.const import DOMAIN
|
||||
from homeassistant.const import CONTENT_TYPE_JSON
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from .common import TEST_EMAIL_ADDRESS, TEST_PASSWORD, TEST_TOKEN, TEST_USER_ID
|
||||
|
||||
from tests.test_util.aiohttp import AiohttpClientMocker
|
||||
|
||||
|
||||
async def test_form(hass, aioclient_mock_fixture):
|
||||
"""Test we get the form."""
|
||||
|
@ -34,7 +37,9 @@ async def test_form(hass, aioclient_mock_fixture):
|
|||
assert len(mock_setup_entry.mock_calls) == 1
|
||||
|
||||
|
||||
async def test_form_cannot_connect(hass, aioclient_mock):
|
||||
async def test_form_cannot_connect(
|
||||
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
|
||||
) -> None:
|
||||
"""Test we handle cannot connect error."""
|
||||
now = round(time.time())
|
||||
# Mocks a failed login response for flo.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue