Improve user creation

This commit is contained in:
Ross
2023-02-20 11:43:56 +00:00
parent 0eacd83446
commit 81d4dc72cc
7 changed files with 191 additions and 95 deletions
+8 -1
View File
@@ -27,6 +27,12 @@ EXAM_VIEWS = (
AnatomyExamViews,
)
JSON_VIEWS = (
RapidExamViews,
LongExamViews,
AnatomyExamViews,
)
@pytest.fixture
def create_superuser(db, django_user_model):
@@ -46,7 +52,8 @@ def set_up_exams(request, django_user_model, create_superuser):
return request.param
@pytest.fixture(params=EXAM_VIEWS)
# We only test JSON functionality with this so limit the views
@pytest.fixture(params=JSON_VIEWS)
def set_up_packets(request):
e = request.param.Exam.objects.create(name="test packet", exam_mode=False, active=True)
return request.param