Add type hints for requests_mock.Mocker in test fixtures (#118678)
This commit is contained in:
parent
9be972b13e
commit
6cf7889c38
3 changed files with 6 additions and 3 deletions
|
@ -4,6 +4,7 @@ import json
|
|||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
from requests_mock import Mocker
|
||||
|
||||
from homeassistant.components import vultr
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
@ -14,7 +15,7 @@ from tests.common import load_fixture
|
|||
|
||||
|
||||
@pytest.fixture(name="valid_config")
|
||||
def valid_config(hass: HomeAssistant, requests_mock):
|
||||
def valid_config(hass: HomeAssistant, requests_mock: Mocker) -> None:
|
||||
"""Load a valid config."""
|
||||
requests_mock.get(
|
||||
"https://api.vultr.com/v1/account/info?api_key=ABCDEFG1234567",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue