From ea778450b2ba59a8f9471dd92bcc5cb30c9c99ab Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 27 Oct 2025 11:49:10 +0100 Subject: [PATCH] Fixing patch check --- changedetectionio/tests/unit/test_notification_diff.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changedetectionio/tests/unit/test_notification_diff.py b/changedetectionio/tests/unit/test_notification_diff.py index 5f28e8f65..694a336da 100755 --- a/changedetectionio/tests/unit/test_notification_diff.py +++ b/changedetectionio/tests/unit/test_notification_diff.py @@ -17,6 +17,8 @@ from changedetectionio.diff import ( CHANGED_INTO_PLACEMARKER_OPEN, CHANGED_INTO_PLACEMARKER_CLOSED ) +from changedetectionio.notification_service import CUSTOM_LINEBREAK_PLACEHOLDER + # mostly class TestDiffBuilder(unittest.TestCase): @@ -78,6 +80,9 @@ class TestDiffBuilder(unittest.TestCase): output = diff.render_diff(previous_version_file_contents=before, newest_version_file_contents=after, patch_format=True) + + output = output.replace(CUSTOM_LINEBREAK_PLACEHOLDER, '\n') + output = output.split("\n") self.assertIn('-ok', output)