aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-06-02 13:15:52 +0300
committerGravatar GitHub <[email protected]>2021-06-02 13:15:52 +0300
commitbe7038458046b0973b47eca3c0b45860968c7cbd (patch)
tree262275864fd4918bf7cb5a9b3ef6783f24d55068 /backend
parentUses 422 For Failed Tests (diff)
Documents Return Code
Adds a comment which explains when a certain return_code is used. Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'backend')
-rw-r--r--backend/routes/forms/submit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/routes/forms/submit.py b/backend/routes/forms/submit.py
index 4691640..a6c3fbd 100644
--- a/backend/routes/forms/submit.py
+++ b/backend/routes/forms/submit.py
@@ -195,6 +195,7 @@ class SubmitForm(Route):
form.questions[test.question_index].data["unittests"]["allow_failure"]
)
+ # An error while communicating with the test runner
if test.return_code == 99:
failures.append(test)
status_code = 500