mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix Météo-France I/O while testing (#31695)
* Fix Météo-France I/O while testing * Review
This commit is contained in:
parent
7d0b50cadb
commit
9e41ee49cb
16
tests/components/meteo_france/conftest.py
Normal file
16
tests/components/meteo_france/conftest.py
Normal file
@ -0,0 +1,16 @@
|
||||
"""Meteo-France generic test utils."""
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@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
|
Loading…
x
Reference in New Issue
Block a user