From a357c82e6f9e068ad7270181b1c65063d19c3c3b Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 14 Jun 2022 16:42:13 +0200 Subject: [PATCH] Adding tesst --- changedetectionio/tests/test_notification.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changedetectionio/tests/test_notification.py b/changedetectionio/tests/test_notification.py index 87cc4f57..88c5e319 100644 --- a/changedetectionio/tests/test_notification.py +++ b/changedetectionio/tests/test_notification.py @@ -154,6 +154,10 @@ def test_check_notification(client, live_server): time.sleep(1) assert os.path.exists("test-datastore/notification.txt") == False + res = client.get(url_for("notification_logs")) + # be sure we see it in the output log + assert b'New ChangeDetection.io Notification - ' + test_url.encode('utf-8') in res.data + # cleanup for the next client.get( url_for("form_delete", uuid="all"),