Add type hints to integration tests (part 24) (#88307)

This commit is contained in:
epenet 2023-02-17 16:34:53 +01:00 committed by GitHub
parent f3e4783a5e
commit aa50096a31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 627 additions and 359 deletions

View file

@ -12,7 +12,7 @@ from .const import VALID_CONFIG
from tests.common import load_fixture
def test_setup(hass: HomeAssistant):
def test_setup(hass: HomeAssistant) -> None:
"""Test successful setup."""
with patch(
"vultr.Vultr.server_list",
@ -22,7 +22,7 @@ def test_setup(hass: HomeAssistant):
assert response
async def test_setup_no_api_key(hass: HomeAssistant):
async def test_setup_no_api_key(hass: HomeAssistant) -> None:
"""Test failed setup with missing API Key."""
conf = deepcopy(VALID_CONFIG)
del conf["vultr"]["api_key"]