Notifications log - log what was sent after applying all cleanups

This commit is contained in:
dgtlmoon
2022-06-14 17:01:13 +02:00
committed by GitHub
parent 19c96f4bdd
commit 2ba00d2e1d
3 changed files with 10 additions and 2 deletions

View File

@@ -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"),