2020-01-30 05:59:24 +00:00
|
|
|
"""Linky generic test utils."""
|
|
|
|
import pytest
|
|
|
|
|
2020-05-03 18:27:19 +00:00
|
|
|
from tests.async_mock import patch
|
|
|
|
|
2020-01-30 05:59:24 +00:00
|
|
|
|
|
|
|
@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
|