Removes I/O from linky tests (#31299)

pull/31308/head
Paulus Schoutsen 2020-01-29 21:59:24 -08:00 committed by GitHub
parent cf0e467150
commit da14e2927f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View 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