Skip to content

Commit

Permalink
✅ [#4717] Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmolen committed Nov 11, 2024
1 parent be29782 commit 97fbb37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/openforms/emails/tests/test_confirmation_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def test_checkboxes_ordering(self):
context = get_confirmation_email_context_data(submission)
rendered_content = render_email_template("{% summary %}", context)

self.assertIn("Value 1; Value 2", rendered_content)
self.assertInHTML("<ul><li>Value 1</li><li>Value 2</li></ul>", rendered_content)

def test_get_confirmation_email_templates(self):
email_template1 = ConfirmationEmailTemplateFactory.create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def test_submission_with_email_backend(self):
self.assertTagWithTextIn("td", "foo", message_html)
self.assertTagWithTextIn("td", "bar", message_html)
self.assertTagWithTextIn("td", "some_list", message_html)
self.assertTagWithTextIn("td", "value1; value2", message_html)
self.assertTagWithTextIn(
"td", "<ul><li>value1</li><li>value2</li></ul>", message_html
)

cosigner_line = f"{_('Co-signed by')}: Demo Person"

Expand Down Expand Up @@ -777,7 +779,7 @@ def test_regression_nested_components_columns(self):
message = mail.outbox[0]

message_html = message.alternatives[0][0]
self.assertIn("Backend; Frontend", message_html)
self.assertInHTML("<ul><li>Backend</li><li>Frontend</li></ul>", message_html)

@patch("openforms.registrations.contrib.email.plugin.EmailConfig.get_solo")
def test_with_global_config_attach_files(self, mock_get_solo):
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/submissions/tests/test_submission_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_report_is_generated_in_same_language_as_submission(self):
("postcode", "3744 AA"),
("radio", "Radio number one"),
("select", "A fine selection"),
("selectboxes", "This; That; The Other"),
("selectboxes", "<ul><li>This</li><li>That</li><li>The Other</li></ul>"),
("signature", SIGNATURE),
("textarea", "Largish predetermined ASCII"),
("textfield", "Short predetermined ASCII"),
Expand Down

0 comments on commit 97fbb37

Please sign in to comment.