Add type hints to integration tests (part 24) (#88307)
This commit is contained in:
parent
f3e4783a5e
commit
aa50096a31
49 changed files with 627 additions and 359 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue