mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-29 11:05:42 +00:00
Chore: Initial conversion to pytest fixtures (#7110)
This commit is contained in:
1 parent
1b9cf5121b
commit
3cf73a77ac
17 files changed
+1051
-753
No files matched your search
@@ -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