aboutsummaryrefslogtreecommitdiff
path: root/tests/qc_app/test_parse.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-13 15:54:17 -0500
committerFrederick Muriuki Muriithi2024-06-13 15:54:17 -0500
commit9ff12c643feadc353f29fe8dac4b9819caf1779c (patch)
tree33f8461235ade946c2ccb1e319547b938750c099 /tests/qc_app/test_parse.py
parent68a43dc318fb7d76544d704752f243b9afed7e52 (diff)
downloadgn-uploader-9ff12c643feadc353f29fe8dac4b9819caf1779c.tar.gz
Fix tests and issues caught by tests.update-templates-for-bootstrap
Diffstat (limited to 'tests/qc_app/test_parse.py')
-rw-r--r--tests/qc_app/test_parse.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qc_app/test_parse.py b/tests/qc_app/test_parse.py
index 187af76..3915a4d 100644
--- a/tests/qc_app/test_parse.py
+++ b/tests/qc_app/test_parse.py
@@ -30,7 +30,7 @@ def test_parse_with_existing_uploaded_file(#pylint: disable=[too-many-arguments]
filename = "no_data_errors.tsv"
filetype = "average"
client.post(
- "/", data={
+ "/upload", data={
"speciesid": speciesid,
"filetype": filetype,
"qc_text_file": uploadable_file_object(filename)})
@@ -81,7 +81,7 @@ def test_parse_with_non_uploaded_file(client, filename, uri, error_msgs):
## Conditionally upload files
if filename and filename != "non_existent.file":
client.post(
- "/", data={
+ "/upload", data={
"filetype": "average",
"qc_text_file": uploadable_file_object(filename)})
# Trigger
@@ -89,7 +89,7 @@ def test_parse_with_non_uploaded_file(client, filename, uri, error_msgs):
## Check that there was exactly one redirect
assert len(resp.history) == 1 and resp.history[0].status_code == 302
## Check that redirect is to home page and is successful
- assert resp.request.path == "/"
+ assert resp.request.path == "/upload"
assert resp.status_code == 200
## Check that error(s) are displayed
for error_msg in error_msgs: