From 92ce7d29b66a12b58f8a8fea5b4dedad2a3974b5 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 28 Jan 2025 18:21:27 +0100 Subject: [PATCH] be sur eto clean off earlier watches --- changedetectionio/tests/test_notification.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/changedetectionio/tests/test_notification.py b/changedetectionio/tests/test_notification.py index 119978445..37fcdc58a 100644 --- a/changedetectionio/tests/test_notification.py +++ b/changedetectionio/tests/test_notification.py @@ -454,8 +454,18 @@ def test_global_send_test_notification(client, live_server, measure_memory_usage assert b"Error: You must have atleast one watch configured for 'test notification' to work" in res.data + client.get( + url_for("form_delete", uuid="all"), + follow_redirects=True + ) + def _test_color_notifications(client, notification_body_token): + client.get( + url_for("form_delete", uuid="all"), + follow_redirects=True + ) + from changedetectionio.diff import ADDED_STYLE, REMOVED_STYLE set_original_response() @@ -494,9 +504,9 @@ def _test_color_notifications(client, notification_body_token): wait_for_all_checks(client) set_modified_response() - - + res = client.get(url_for("form_watch_checknow"), follow_redirects=True) + assert b'1 watches queued for rechecking.' in res.data wait_for_all_checks(client)