Add type hint to mock_async_zeroconf in test fixtures (#119057)
This commit is contained in:
parent
5f309b69cf
commit
bfff3c0524
8 changed files with 19 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
|||
"""Fixtures for tests."""
|
||||
|
||||
from unittest.mock import patch
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
@ -39,5 +39,5 @@ def patch_mydevolo(credentials_valid: bool, maintenance: bool) -> Generator[None
|
|||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def devolo_home_control_mock_async_zeroconf(mock_async_zeroconf):
|
||||
def devolo_home_control_mock_async_zeroconf(mock_async_zeroconf: MagicMock) -> None:
|
||||
"""Auto mock zeroconf."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue