From 269a7f1c54ce7a638b4e2d93f081cc878d4e4735 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 23 Jul 2022 16:30:56 +0200 Subject: [PATCH] Align test with const --- changedetectionio/tests/test_filter_failure_notification.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changedetectionio/tests/test_filter_failure_notification.py b/changedetectionio/tests/test_filter_failure_notification.py index c8c7ec959..e70461f7e 100644 --- a/changedetectionio/tests/test_filter_failure_notification.py +++ b/changedetectionio/tests/test_filter_failure_notification.py @@ -105,9 +105,10 @@ def test_check_notification(client, live_server): os.unlink("test-datastore/notification.txt") set_response_with_filter() - for i in range(0, 5): + for i in range(0, App._FILTER_FAILURE_THRESHOLD_ATTEMPTS_DEFAULT): client.get(url_for("form_watch_checknow"), follow_redirects=True) time.sleep(3) + # It should have sent a notification, but.. assert os.path.isfile("test-datastore/notification.txt") # but it should not contain the info about the failed filter