Skip to content

Commit

Permalink
✅ Fix failing test for rendering dates in PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Feb 3, 2025
1 parent 5d84751 commit c371d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openforms/submissions/tests/test_tasks_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}]},
},
},
],
Expand All @@ -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):
"""
Expand Down

0 comments on commit c371d68

Please sign in to comment.