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
+2 -10
View File
@@ -190,22 +190,14 @@ def test_exams(db, client):
if exam_tester.testing_cid_user:
cid_user_answer = UserAnswer(
question=extra_question,
a=True,
b=False,
c=True,
d=False,
e=True,
answer = "a",
cid=cid_user.cid,
exam=exam,
)
else:
cid_user_answer = UserAnswer(
question=extra_question,
a=True,
b=False,
c=True,
d=False,
e=True,
answer = "a",
user=exam_tester.current_user,
exam=exam,
)