Align test with const

This commit is contained in:
dgtlmoon
2022-07-23 16:30:56 +02:00
parent c2deb18945
commit 269a7f1c54

View File

@@ -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