From dcf4bf37edf31f1a6fd0e0399b5abd9283230e25 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 22 Sep 2023 09:21:07 +0200 Subject: [PATCH] Code/Test - Improve testing for creating backups --- changedetectionio/tests/test_backup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/changedetectionio/tests/test_backup.py b/changedetectionio/tests/test_backup.py index 89fd66a5d67..f03fcf37406 100644 --- a/changedetectionio/tests/test_backup.py +++ b/changedetectionio/tests/test_backup.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -from .util import set_original_response, set_modified_response, live_server_setup +from .util import set_original_response, set_modified_response, live_server_setup, wait_for_all_checks from flask import url_for from urllib.request import urlopen from zipfile import ZipFile @@ -19,12 +19,12 @@ def test_backup(client, live_server): # Add our URL to the import page res = client.post( url_for("import_page"), - data={"urls": url_for('test_endpoint', _external=True)}, + data={"urls": url_for('test_endpoint', _external=True)+"?somechar=őőőőőőőő"}, follow_redirects=True ) assert b"1 Imported" in res.data - time.sleep(3) + wait_for_all_checks(client) res = client.get( url_for("get_backup"),