use zoneinfo instead of pytz

Signed-off-by: Oliver Lippert <info@trusty.codes>

#267
This commit is contained in:
Oliver Lippert 2022-05-03 08:08:28 +02:00
parent 182cea3385
commit c3b5b47b22

View File

@ -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")