Add delays for apprise

test-cleanups
dgtlmoon 1 year ago
parent 91f0d02129
commit 2cef3cb77f

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

Loading…
Cancel
Save