mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 11:07:00 +01:00
Swapping out the tika and replaces requests with httpx
This commit is contained in:
parent
304324ebd0
commit
6e65558ea4
5 changed files with 166 additions and 98 deletions
11
src/paperless_tika/tests/utils.py
Normal file
11
src/paperless_tika/tests/utils.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue