From 2cef3cb77f55b55af57620278721e80caee67e0c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 28 Jun 2023 09:30:08 +0200 Subject: [PATCH] Add delays for apprise --- changedetectionio/tests/test_filter_exist_changes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/changedetectionio/tests/test_filter_exist_changes.py b/changedetectionio/tests/test_filter_exist_changes.py index 50d4c916..9b5e4140 100644 --- a/changedetectionio/tests/test_filter_exist_changes.py +++ b/changedetectionio/tests/test_filter_exist_changes.py @@ -103,6 +103,9 @@ def test_filter_doesnt_exist_then_exists_should_get_notification(client, live_se assert b"Updated watch." in res.data wait_for_all_checks(client) + # apprise takes a moment to fire + time.sleep(3) + # Shouldn't exist, shouldn't have fired assert not os.path.isfile("test-datastore/notification.txt") # Now the filter should exist @@ -110,6 +113,9 @@ def test_filter_doesnt_exist_then_exists_should_get_notification(client, live_se client.get(url_for("form_watch_checknow"), follow_redirects=True) wait_for_all_checks(client) + + # apprise takes a moment to fire + time.sleep(3) assert os.path.isfile("test-datastore/notification.txt") with open("test-datastore/notification.txt", 'r') as f: