From 5051e0a8c212f02aacf6ad23667f55c3db8868de Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 28 Jul 2022 12:00:06 +0200 Subject: [PATCH] update tests --- changedetectionio/tests/test_filter_failure_notification.py | 2 +- changedetectionio/tests/test_notification.py | 4 ++-- changedetectionio/tests/test_notification_errors.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/changedetectionio/tests/test_filter_failure_notification.py b/changedetectionio/tests/test_filter_failure_notification.py index c2bbe296..da4c9720 100644 --- a/changedetectionio/tests/test_filter_failure_notification.py +++ b/changedetectionio/tests/test_filter_failure_notification.py @@ -30,7 +30,7 @@ def run_filter_test(client, content_filter): # Add our URL to the import page test_url = url_for('test_endpoint', _external=True) res = client.post( - url_for("form_watch_add"), + url_for("form_quick_watch_add"), data={"url": test_url, "tag": ''}, follow_redirects=True ) diff --git a/changedetectionio/tests/test_notification.py b/changedetectionio/tests/test_notification.py index 88c5e319..29b7e00d 100644 --- a/changedetectionio/tests/test_notification.py +++ b/changedetectionio/tests/test_notification.py @@ -36,7 +36,7 @@ def test_check_notification(client, live_server): # Add our URL to the import page test_url = url_for('test_endpoint', _external=True) res = client.post( - url_for("form_watch_add"), + url_for("form_quick_watch_add"), data={"url": test_url, "tag": ''}, follow_redirects=True ) @@ -172,7 +172,7 @@ def test_notification_validation(client, live_server): # Add our URL to the import page test_url = url_for('test_endpoint', _external=True) res = client.post( - url_for("form_watch_add"), + url_for("form_quick_watch_add"), data={"url": test_url, "tag": 'nice one'}, follow_redirects=True ) diff --git a/changedetectionio/tests/test_notification_errors.py b/changedetectionio/tests/test_notification_errors.py index 6c57340e..1d51309a 100644 --- a/changedetectionio/tests/test_notification_errors.py +++ b/changedetectionio/tests/test_notification_errors.py @@ -16,7 +16,7 @@ def test_check_notification_error_handling(client, live_server): # use a different URL so that it doesnt interfere with the actual check until we are ready test_url = url_for('test_endpoint', _external=True) res = client.post( - url_for("form_watch_add"), + url_for("form_quick_watch_add"), data={"url": "https://changedetection.io/CHANGELOG.txt", "tag": ''}, follow_redirects=True )