Fixing patch check

This commit is contained in:
dgtlmoon
2025-10-27 11:49:10 +01:00
parent 8be6b91990
commit ea778450b2
@@ -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)