mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-23 17:52:23 -04:00
12 lines
299 B
Python
12 lines
299 B
Python
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
|