Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Franck Nijhof <frenck@frenck.nl> Co-authored-by: Franck Nijhof <git@frenck.dev>
13 lines
315 B
Python
13 lines
315 B
Python
"""Meteoclimatic 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.meteoclimatic.MeteoclimaticClient")
|
|
|
|
with patch_client:
|
|
yield
|