From d7832d735d5e38192ebec56eea4851704ae5b915 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 12 Feb 2022 22:11:36 +0100 Subject: [PATCH] Check preview page is working --- changedetectionio/tests/test_backend.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/changedetectionio/tests/test_backend.py b/changedetectionio/tests/test_backend.py index 92b81891..29bdbaf0 100644 --- a/changedetectionio/tests/test_backend.py +++ b/changedetectionio/tests/test_backend.py @@ -100,6 +100,12 @@ def test_check_basic_change_detection_functionality(client, live_server): # It should have picked up the assert b'head title' in res.data + + # be sure the HTML converter worked + res = client.get(url_for("preview_page", uuid="first")) + assert b'<html>' not in res.data + + # # Cleanup everything res = client.get(url_for("api_delete", uuid="all"), follow_redirects=True)