mirror of
https://github.com/home-assistant/core.git
synced 2026-01-25 09:02:38 +01: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
|