From b3b2fae73e5c4ec6fcfb355d537429d591865b10 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 10 Mar 2026 11:19:39 +0100 Subject: [PATCH] Add test --- changedetectionio/tests/test_backend.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/changedetectionio/tests/test_backend.py b/changedetectionio/tests/test_backend.py index 6a04ee67e..c523999d3 100644 --- a/changedetectionio/tests/test_backend.py +++ b/changedetectionio/tests/test_backend.py @@ -48,6 +48,15 @@ def test_check_basic_change_detection_functionality(client, live_server, measure # Check this class does not appear (that we didnt see the actual source) assert b'foobar-detection' not in res.data + # Check POST preview + res = client.post( + url_for("ui.ui_preview.preview_page", uuid="first"), + follow_redirects=True + ) + # Check this class does not appear (that we didnt see the actual source) + assert b'foobar-detection' not in res.data + + # Make a change set_modified_response(datastore_path=datastore_path)