aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-06-02 13:14:50 +0300
committerGravatar GitHub <[email protected]>2021-06-02 13:14:50 +0300
commit9b308d614f8ffeb29e21cd2a7fd7ff3400d94f16 (patch)
tree9841e96d086ad02f3ba83b2850e1e28078dc6de3 /backend
parentReports All Unittest Failure Reasons (diff)
Uses 422 For Failed Tests
Uses 422 instead of 403 to indicate a test has failed. Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'backend')
-rw-r--r--backend/routes/forms/submit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/routes/forms/submit.py b/backend/routes/forms/submit.py
index fe2abd5..4691640 100644
--- a/backend/routes/forms/submit.py
+++ b/backend/routes/forms/submit.py
@@ -169,7 +169,7 @@ class SubmitForm(Route):
unittest_results = await execute_unittest(response_obj, form)
failures = []
- status_code = 403
+ status_code = 422
for test in unittest_results:
response_obj.response[test.question_id] = {