Skip to content

Commit

Permalink
Code/Test - Improve testing for creating backups
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon authored Sep 22, 2023
1 parent e3cf22f commit dcf4bf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions changedetectionio/tests/test_backup.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"),
Expand Down

0 comments on commit dcf4bf3

Please sign in to comment.