update sba testing (and fix others)
This commit is contained in:
@@ -57,6 +57,8 @@ def create_rapid_image(question):
|
||||
image = tempfile.NamedTemporaryFile(
|
||||
dir=settings.MEDIA_ROOT, suffix=".jpg", delete=False
|
||||
)
|
||||
image.flush()
|
||||
image._committed = True
|
||||
|
||||
rapid_image = RapidImage(image=image, rapid=question)
|
||||
|
||||
@@ -189,6 +191,9 @@ def test_exams(db, client):
|
||||
assert res.status_code == 200
|
||||
exam_json = json.loads(res.content)
|
||||
print(exam_json)
|
||||
print(exam_json["questions"].values())
|
||||
print("----")
|
||||
print(question1.get_question_json(answers=False))
|
||||
|
||||
assert (
|
||||
question1.get_question_json(answers=False)
|
||||
|
||||
Reference in New Issue
Block a user