mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Removes I/O from linky tests (#31299)
This commit is contained in:
11
tests/components/linky/conftest.py
Normal file
11
tests/components/linky/conftest.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""Linky generic test utils."""
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def patch_fakeuseragent():
|
||||
"""Stub out fake useragent dep that makes requests."""
|
||||
with patch("pylinky.client.UserAgent", return_value="Test Browser"):
|
||||
yield
|
Reference in New Issue
Block a user