update sba testing (and fix others)
This commit is contained in:
@@ -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)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user