We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b574a6e commit d87e504Copy full SHA for d87e504
1 file changed
ietf/doc/tests_statement.py
@@ -5,6 +5,7 @@
5
from pyquery import PyQuery
6
7
from pathlib import Path
8
+from zoneinfo import ZoneInfo
9
10
from django.conf import settings
11
from django.core.files.uploadedfile import SimpleUploadedFile
@@ -68,7 +69,10 @@ def test_statement_doc_view(self):
68
69
self.assertEqual(q("#statement-type").text(), "IAB Statement")
70
self.assertIn("has some text", q(".card-body").text())
71
published = doc.docevent_set.filter(type="published_statement").last().time
- self.assertIn(published.date().isoformat(), q("#published").text())
72
+ self.assertIn(
73
+ published.astimezone(ZoneInfo(settings.TIME_ZONE)).date().isoformat(),
74
+ q("#published").text(),
75
+ )
76
77
doc.set_state(State.objects.get(type_id="statement", slug="replaced"))
78
doc2 = StatementFactory()
0 commit comments