core/tests/components/eafm/conftest.py
epenet 7dc2b92452
Use typed coordinator and runtime_data in eafm (#136629)
* Move coordinator and use runtime_data in eafm

* Add type hints
2025-01-27 15:05:20 +01:00

20 lines
440 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.coordinator.get_station") as patched:
yield patched