aboutsummaryrefslogtreecommitdiff
path: root/tests/qc_app
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-06-21 03:58:52 +0300
committerFrederick Muriuki Muriithi2022-06-21 03:58:52 +0300
commit69f71b1ed9b1be832af661e0d11d8bd54a696d10 (patch)
treec5b86e43dd5cc28249d5f8b450c3254fc11cee66 /tests/qc_app
parent6375b2394eab075af6e7488d343131dc99fd7c3b (diff)
downloadgn-uploader-69f71b1ed9b1be832af661e0d11d8bd54a696d10.tar.gz
Update tests: Ensure errors return status code 400
Diffstat (limited to 'tests/qc_app')
-rw-r--r--tests/qc_app/test_entry.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qc_app/test_entry.py b/tests/qc_app/test_entry.py
index 31c43e1..61c5db0 100644
--- a/tests/qc_app/test_entry.py
+++ b/tests/qc_app/test_entry.py
@@ -35,7 +35,7 @@ def test_post_notifies_errors_if_no_data_is_provided(client):
THEN: ensure the system responds woit the appropriate error messages
"""
response = client.post("/", data={})
- assert response.status_code == 200
+ assert response.status_code == 400
assert (
b'<span class="alert alert-error">Invalid file type provided.</span>'
in response.data)
@@ -80,5 +80,5 @@ def test_post_with_missing_or_invalid_data(client, request_data,error_message):
THEN: ensure that the system responds with the appropriate error message
"""
response = client.post("/", data=request_data)
- assert response.status_code == 200
+ assert response.status_code == 400
assert error_message in response.data