update sba testing (and fix others)

This commit is contained in:
Ross
2023-10-09 12:44:11 +01:00
parent 297f8619b4
commit 9b16596d0c
13 changed files with 363 additions and 243 deletions
+10
View File
@@ -128,6 +128,13 @@ class Question(QuestionBase):
def get_questions(self):
return [self.a, self.b, self.c, self.d, self.e]
def get_unanswered_mark_and_text(self) -> tuple[int, tuple[str, str, str, str, str]]:
"""
returns score, tuple[answers]
"""
return ((0,) * 5, ("Not answered",) * 5)
#@reversion.register
class Exam(ExamBase):
@@ -209,6 +216,9 @@ class UserAnswer(UserAnswerBase):
def get_answers(self):
return (self.a, self.b, self.c, self.d, self.e)
def get_answer(self):
return self.get_answers()
def get_answer_string(self):
return [str(i) for i in (self.a, self.b, self.c, self.d, self.e)]