2020-08-10 13:51:04 +00:00
|
|
|
"""eafm fixtures."""
|
|
|
|
|
2021-01-01 21:31:56 +00:00
|
|
|
from unittest.mock import patch
|
2020-08-10 13:51:04 +00:00
|
|
|
|
2021-01-01 21:31:56 +00:00
|
|
|
import pytest
|
2020-10-06 08:15:50 +00:00
|
|
|
|
2020-08-10 13:51:04 +00:00
|
|
|
|
2023-01-26 17:05:05 +00:00
|
|
|
@pytest.fixture
|
2020-08-10 13:51:04 +00:00
|
|
|
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
|
2020-08-10 13:51:04 +00:00
|
|
|
def mock_get_station():
|
|
|
|
"""Mock aioeafm.get_station."""
|
|
|
|
with patch("homeassistant.components.eafm.sensor.get_station") as patched:
|
|
|
|
yield patched
|