2020-02-10 16:00:22 +00:00
|
|
|
"""Meteo-France generic test utils."""
|
|
|
|
import pytest
|
|
|
|
|
2020-05-03 18:27:19 +00:00
|
|
|
from tests.async_mock import patch
|
|
|
|
|
2020-02-10 16:00:22 +00:00
|
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
|
|
def patch_requests():
|
|
|
|
"""Stub out services that makes requests."""
|
|
|
|
patch_client = patch("homeassistant.components.meteo_france.meteofranceClient")
|
|
|
|
patch_weather_alert = patch(
|
|
|
|
"homeassistant.components.meteo_france.VigilanceMeteoFranceProxy"
|
|
|
|
)
|
|
|
|
|
|
|
|
with patch_client, patch_weather_alert:
|
|
|
|
yield
|