diff --git a/changedetectionio/tests/test_auth.py b/changedetectionio/tests/test_auth.py index 80041221..b3065fc0 100644 --- a/changedetectionio/tests/test_auth.py +++ b/changedetectionio/tests/test_auth.py @@ -4,14 +4,14 @@ import time from flask import url_for from .util import live_server_setup, wait_for_all_checks - +# test pages with http://username@password:foobar.com/ work def test_basic_auth(client, live_server, measure_memory_usage): - live_server_setup(live_server) - # Add our URL to the import page - test_url = url_for('test_basicauth_method', _external=True).replace("//","//myuser:mypass@") + # This page will echo back any auth info + test_url = url_for('test_basicauth_method', _external=True).replace("//","//myuser:mypass@") + time.sleep(1) res = client.post( url_for("imports.import_page"), data={"urls": test_url}, @@ -34,4 +34,4 @@ def test_basic_auth(client, live_server, measure_memory_usage): follow_redirects=True ) - assert b'myuser mypass basic' in res.data \ No newline at end of file + assert b'myuser mypass basic' in res.data