From cdf07983db2d9b8e97faad4223bd7555f0eb6799 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 17 Jun 2024 09:00:18 +0200 Subject: [PATCH] plaintext fixes --- changedetectionio/tests/smtp/test_notification_smtp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/changedetectionio/tests/smtp/test_notification_smtp.py b/changedetectionio/tests/smtp/test_notification_smtp.py index 07fce209..c69299fe 100644 --- a/changedetectionio/tests/smtp/test_notification_smtp.py +++ b/changedetectionio/tests/smtp/test_notification_smtp.py @@ -85,7 +85,7 @@ def test_check_notification_email_formats_default_HTML(client, live_server): # The email should have two bodies, and the text/html part should be
assert 'Content-Type: text/plain' in msg - assert '(added) So let\'s see what happens.\n' in msg # The plaintext part with \n + assert '(added) So let\'s see what happens.\r\n' in msg # The plaintext part with \r\n assert 'Content-Type: text/html' in msg assert '(added) So let\'s see what happens.
' in msg # the html part res = client.get(url_for("form_delete", uuid="all"), follow_redirects=True) @@ -152,7 +152,7 @@ def test_check_notification_email_formats_default_Text_override_HTML(client, liv # The email should not have two bodies, should be TEXT only assert 'Content-Type: text/plain' in msg - assert '(added) So let\'s see what happens.\n' in msg # The plaintext part with \n + assert '(added) So let\'s see what happens.\r\n' in msg # The plaintext part with \r\n set_original_response() # Now override as HTML format @@ -173,7 +173,7 @@ def test_check_notification_email_formats_default_Text_override_HTML(client, liv # The email should have two bodies, and the text/html part should be
assert 'Content-Type: text/plain' in msg - assert '(removed) So let\'s see what happens.\n' in msg # The plaintext part with \n + assert '(removed) So let\'s see what happens.\r\n' in msg # The plaintext part with \n assert 'Content-Type: text/html' in msg assert '(removed) So let\'s see what happens.
' in msg # the html part