Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

use zoneinfo instead of pytz

Oliver Lippertc3b5b47b22ca
diff --git a/src/documents/tests/test_document_model.py b/src/documents/tests/test_document_model.py
index bea8b6b91..3ff4d3253 100644
--- a/src/documents/tests/test_document_model.py
+++ b/src/documents/tests/test_document_model.py
@@ -1,9 +1,9 @@
import shutil
import tempfile
+import zoneinfo
from pathlib import Path
from unittest import mock
-import pytz
from django.test import override_settings
from django.test import TestCase
from django.utils import timezone
@@ -69,7 +69,7 @@ class TestDocument(TestCase):
0,
0,
0,
- pytz.timezone("Europe/Berlin"),
+ zoneinfo.ZoneInfo("Europe/Berlin"),
),
)
self.assertEqual(doc.get_public_filename(), "2020-12-25 test.pdf")