Improve user creation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user