Files
project-work/home-assistant/tests/components/eafm/conftest.py
2026-11-19 15:15:32 -05:00

20 lines
428 B
Python

"""eafm fixtures."""
from unittest.mock import patch
import pytest
@pytest.fixture
def mock_get_stations():
"""Mock aioeafm.get_stations."""
with patch("homeassistant.components.eafm.config_flow.get_stations") as patched:
yield patched
@pytest.fixture
def mock_get_station():
"""Mock aioeafm.get_station."""
with patch("homeassistant.components.eafm.get_station") as patched:
yield patched