2020-08-10 14:51:04 +01:00
|
|
|
"""eafm fixtures."""
|
|
|
|
|
2021-01-01 22:31:56 +01:00
|
|
|
from unittest.mock import patch
|
2020-08-10 14:51:04 +01:00
|
|
|
|
2021-01-01 22:31:56 +01:00
|
|
|
import pytest
|
2020-10-06 10:15:50 +02:00
|
|
|
|
2020-08-10 14:51:04 +01:00
|
|
|
|
|
|
|
@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.sensor.get_station") as patched:
|
|
|
|
yield patched
|