major update to test
This commit is contained in:
@@ -4,6 +4,8 @@ from django.urls import reverse
|
||||
|
||||
from longs.models import Long
|
||||
|
||||
from generic.tests.conftest import create_modality, create_examination, create_plane, create_contrast, create_user
|
||||
|
||||
@pytest.fixture
|
||||
def create_long(db):
|
||||
return Long.objects.create(
|
||||
|
||||
@@ -58,7 +58,7 @@ def create_exam(db):
|
||||
return exam
|
||||
|
||||
|
||||
def create_examination(db):
|
||||
def create_examinations(db):
|
||||
examination = Examination.objects.create(examination="test examination")
|
||||
examination.save()
|
||||
examination = Examination.objects.create(examination="test examination 2")
|
||||
@@ -68,7 +68,7 @@ def create_examination(db):
|
||||
def create_long_series(question, image_number=5):
|
||||
series = LongSeries(
|
||||
description="Test series",
|
||||
examination=Examination.objects.get(pk=1),
|
||||
examination=Examination.objects.all().first(),
|
||||
)
|
||||
|
||||
series.save()
|
||||
@@ -118,7 +118,7 @@ def test_exams(db, client):
|
||||
|
||||
# create_structures(db)
|
||||
# create_question_types(db)
|
||||
create_examination(db)
|
||||
create_examinations(db)
|
||||
|
||||
question1 = create_question(exam)
|
||||
generated_questions = [question1, create_question(exam), create_question(exam)]
|
||||
|
||||
Reference in New Issue
Block a user