mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-27 02:05:57 +01:00
12 lines
287 B
Python
12 lines
287 B
Python
"""Linky generic test utils."""
|
|
import pytest
|
|
|
|
from tests.async_mock import patch
|
|
|
|
|
|
@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
|