From c371d684b55c155248093ebf3d0673037dd01018 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Mon, 3 Feb 2025 11:49:28 +0100 Subject: [PATCH] :white_check_mark: Fix failing test for rendering dates in PDF --- src/openforms/submissions/tests/test_tasks_pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openforms/submissions/tests/test_tasks_pdf.py b/src/openforms/submissions/tests/test_tasks_pdf.py index f277cd120e..e9b2daa641 100644 --- a/src/openforms/submissions/tests/test_tasks_pdf.py +++ b/src/openforms/submissions/tests/test_tasks_pdf.py @@ -136,7 +136,7 @@ def test_date_object_is_converted_to_str_when_it_comes_from_logic_rule(self): "variable": "updatedDate", "action": { "type": "variable", - "value": {"+": [{"var": "date1"}, {"duration": "P1M"}]}, + "value": {"+": [{"var": "date1"}, {"duration": "P15D"}]}, }, }, ], @@ -147,7 +147,7 @@ def test_date_object_is_converted_to_str_when_it_comes_from_logic_rule(self): html = submission.report.generate_submission_report_pdf() - self.assertIn("31 januari 2025", html) + self.assertIn("16 januari 2025", html) def test_visible_output_included(self): """