aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-07-01 23:27:40 +0400
committerGravatar GitHub <[email protected]>2022-07-01 23:27:40 +0400
commite0f9989b56501693289ffeae505b2b36eb4d6273 (patch)
tree575f538151a79060991071c8017f837e827fddee /src/api
parentCleanup Code Owners Comments (#475) (diff)
parentCodify Question State Type (diff)
Merge pull request #474 from python-discord/display-test-failures
Display Test Failures & Refactor Formpage
Diffstat (limited to 'src/api')
-rw-r--r--src/api/question.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/api/question.ts b/src/api/question.ts
index 9824b60..a9a4d4a 100644
--- a/src/api/question.ts
+++ b/src/api/question.ts
@@ -16,3 +16,16 @@ export interface Question {
data: { [key: string]: string | string[] },
required: boolean
}
+
+type UnittestError = {
+ question_id: string,
+ question_index: number,
+ return_code: number,
+ passed: boolean,
+ result: string,
+}
+
+export interface UnittestFailure {
+ error: string,
+ test_results: UnittestError[],
+}