Add type hints to integration tests (part 7) (#87980)
This commit is contained in:
parent
b9beed4624
commit
b68f502769
51 changed files with 755 additions and 395 deletions
|
@ -21,7 +21,7 @@ from .const import MOCK_USER_DATA
|
|||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
async def test_setup(hass: HomeAssistant, fc_class_mock, fh_class_mock):
|
||||
async def test_setup(hass: HomeAssistant, fc_class_mock, fh_class_mock) -> None:
|
||||
"""Test setup and unload of Fritz!Tools."""
|
||||
|
||||
entry = MockConfigEntry(domain=DOMAIN, data=MOCK_USER_DATA)
|
||||
|
@ -35,7 +35,9 @@ async def test_setup(hass: HomeAssistant, fc_class_mock, fh_class_mock):
|
|||
assert entry.state == ConfigEntryState.NOT_LOADED
|
||||
|
||||
|
||||
async def test_options_reload(hass: HomeAssistant, fc_class_mock, fh_class_mock):
|
||||
async def test_options_reload(
|
||||
hass: HomeAssistant, fc_class_mock, fh_class_mock
|
||||
) -> None:
|
||||
"""Test reload of Fritz!Tools, when options changed."""
|
||||
|
||||
entry = MockConfigEntry(
|
||||
|
@ -67,7 +69,7 @@ async def test_options_reload(hass: HomeAssistant, fc_class_mock, fh_class_mock)
|
|||
"error",
|
||||
FRITZ_AUTH_EXCEPTIONS,
|
||||
)
|
||||
async def test_setup_auth_fail(hass: HomeAssistant, error):
|
||||
async def test_setup_auth_fail(hass: HomeAssistant, error) -> None:
|
||||
"""Test starting a flow by user with an already configured device."""
|
||||
|
||||
entry = MockConfigEntry(domain=DOMAIN, data=MOCK_USER_DATA)
|
||||
|
@ -87,7 +89,7 @@ async def test_setup_auth_fail(hass: HomeAssistant, error):
|
|||
"error",
|
||||
FRITZ_EXCEPTIONS,
|
||||
)
|
||||
async def test_setup_fail(hass: HomeAssistant, error):
|
||||
async def test_setup_fail(hass: HomeAssistant, error) -> None:
|
||||
"""Test starting a flow by user with an already configured device."""
|
||||
|
||||
entry = MockConfigEntry(domain=DOMAIN, data=MOCK_USER_DATA)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue