mirror of
https://github.com/home-assistant/core.git
synced 2025-12-20 19:09:45 +00:00
17 lines
475 B
Python
17 lines
475 B
Python
"""Test fixtures for the Steamist integration."""
|
|
|
|
from collections.abc import Generator
|
|
from unittest.mock import AsyncMock, MagicMock, patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_aio_discovery() -> Generator[MagicMock]:
|
|
"""Mock AIODiscovery30303."""
|
|
with patch(
|
|
"homeassistant.components.steamist.discovery.AIODiscovery30303"
|
|
) as mock_aio_discovery:
|
|
mock_aio_discovery.return_value.async_scan = AsyncMock()
|
|
yield mock_aio_discovery
|