mirror of
https://github.com/home-assistant/core.git
synced 2026-06-02 05:34:15 +01:00
2af984917e
* Use asynctest-mock in most places * Fix broken patch in pilight
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
|