From c2ee1c582acb31ef2c0923700771d5656a73ed63 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 3 Nov 2025 13:28:19 +0100 Subject: [PATCH] Tests - Adding extra placemarker tests (#3592 #3591 ) --- changedetectionio/tests/smtp/test_notification_smtp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changedetectionio/tests/smtp/test_notification_smtp.py b/changedetectionio/tests/smtp/test_notification_smtp.py index c391f524..f35fbfa4 100644 --- a/changedetectionio/tests/smtp/test_notification_smtp.py +++ b/changedetectionio/tests/smtp/test_notification_smtp.py @@ -158,6 +158,7 @@ def test_check_notification_plaintext_format(client, live_server, measure_memory assert ADDED_PLACEMARKER_OPEN not in subject assert 'diff added didnt split' not in subject assert '(changed) Which is across' in subject + assert 'PLACEMARKER' not in subject # The email should be plain text only (not multipart) assert not msg.is_multipart() @@ -226,6 +227,7 @@ def test_check_notification_html_color_format(client, live_server, measure_memor assert ADDED_PLACEMARKER_OPEN not in subject assert 'diff added didnt split' not in subject assert '(changed) Which is across' in subject + assert 'PLACEMARKER' not in subject assert 'head title' in subject assert "span" not in subject assert 'background-color' not in subject @@ -583,6 +585,7 @@ def test_check_plaintext_document_html_notifications(client, live_server, measur # Should be the HTML, but not HTML Color assert 'background-color' not in html_content assert '
(added) And let's talk about <title> tags
' in html_content + assert 'PLACEMARKER' not in html_content assert '<br' not in html_content assert '
' in body # Should have got converted from original HTML to plaintext
     assert '(changed) some stuff\r\n' in body
+    assert 'PLACEMARKER' not in body
     assert '(into) sxome stuff\r\n' in body
     assert '(added) lets slip this in\r\n' in body
     assert '(added) and this in\r\n' in body