mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-12 21:35:40 -05:00
Chore: Initial conversion to pytest fixtures (#7110)
This commit is contained in:
9
src/documents/tests/conftest.py
Normal file
9
src/documents/tests/conftest.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import zoneinfo
|
||||
|
||||
import pytest
|
||||
from pytest_django.fixtures import SettingsWrapper
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def settings_timezone(settings: SettingsWrapper) -> zoneinfo.ZoneInfo:
|
||||
return zoneinfo.ZoneInfo(settings.TIME_ZONE)
|
Reference in New Issue
Block a user