core/tests/components/eafm/conftest.py

20 lines
435 B
Python
Raw Normal View History

"""eafm fixtures."""
2021-01-01 21:31:56 +00:00
from unittest.mock import patch
2021-01-01 21:31:56 +00:00
import pytest
2020-10-06 08:15:50 +00:00
2023-01-26 17:05:05 +00:00
@pytest.fixture
def mock_get_stations():
"""Mock aioeafm.get_stations."""
with patch("homeassistant.components.eafm.config_flow.get_stations") as patched:
yield patched
2023-01-26 17:05:05 +00:00
@pytest.fixture
def mock_get_station():
"""Mock aioeafm.get_station."""
with patch("homeassistant.components.eafm.sensor.get_station") as patched:
yield patched