Skip to content

Commit 86efe1f

Browse files
💚 Fix broken assertion in test
Jan 1st + 1 month equals Feb. 1st, not Jan 31st. Why was this test passing then, you ask? Well, the PDF also includes the timestamp when it was generated, based on 'now'. The PR with the fix (and test) was created on Jan 31st, effectively causing the expected string to be present in the PDF. Until, of course, time passed and it became February. (cherry picked from commit 3f79ba2)
1 parent f298365 commit 86efe1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openforms/submissions/tests/test_tasks_pdf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_date_object_is_converted_to_str_when_it_comes_from_logic_rule(self):
147147

148148
html = submission.report.generate_submission_report_pdf()
149149

150-
self.assertIn("31 januari 2025", html)
150+
self.assertIn("1 februari 2025", html)
151151

152152
def test_visible_output_included(self):
153153
"""

0 commit comments

Comments
 (0)