basic rapid integration testing

This commit is contained in:
Ross
2023-01-23 12:56:33 +00:00
parent 9b1de19e6f
commit 0e94f780ff
9 changed files with 400 additions and 148 deletions
+1 -3
View File
@@ -265,13 +265,11 @@ class AnatomyQuestion(models.Model):
]
)
def get_question_json(self, based=True, feedback=False, answers=True):
def get_question_json(self, based: bool=True, answers: bool=True):
"""Returns a json representation of the question"""
# Loop through rapidimage associations
images = []
annotations = []
feedback_images = []
if based:
images.append(image_as_base64(self.image))