Swapping out the tika and replaces requests with httpx

This commit is contained in:
Trenton H
2023-06-01 13:32:58 -07:00
parent 304324ebd0
commit 6e65558ea4
5 changed files with 166 additions and 98 deletions

View File

@@ -0,0 +1,11 @@
import pytest
from pytest_httpx import HTTPXMock
class HttpxMockMixin:
@pytest.fixture(autouse=True)
def httpx_mock_auto(self, httpx_mock: HTTPXMock):
"""
Workaround for allowing use of a fixture with unittest style testing
"""
self.httpx_mock = httpx_mock