From 893284293c6c96a3958f5491f5763083bae593fd Mon Sep 17 00:00:00 2001 From: Zach Hancock Date: Mon, 6 Nov 2023 14:47:46 -0500 Subject: [PATCH] fix: practice exams are proctored --- edx_exams/apps/core/exam_types.py | 14 +++++++------- edx_exams/apps/router/tests/test_views.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/edx_exams/apps/core/exam_types.py b/edx_exams/apps/core/exam_types.py index e418bf76..a45107b6 100644 --- a/edx_exams/apps/core/exam_types.py +++ b/edx_exams/apps/core/exam_types.py @@ -40,8 +40,8 @@ class PracticeExamType(ExamType): Properties for practice exam """ name = 'practice' - description = 'Practice, non-proctored, timed exam' - is_proctored = False + description = 'Practice, proctored, timed exam' + is_proctored = True is_timed = True is_practice = True @@ -53,17 +53,17 @@ class OnboardingExamType(ExamType): this type exists solely to translate requests bound for edx-proctoring """ name = 'onboarding' - description = 'Practice, proctored, timed exam' + description = 'Practice, proctored, timed exam for onboarding' is_proctored = True is_timed = True is_practice = True EXAM_TYPES = [ - ProctoredExamType, - TimedExamType, - PracticeExamType, - OnboardingExamType, + OnboardingExamType, + PracticeExamType, + ProctoredExamType, + TimedExamType, ] diff --git a/edx_exams/apps/router/tests/test_views.py b/edx_exams/apps/router/tests/test_views.py index d27fa24c..e8b04be2 100644 --- a/edx_exams/apps/router/tests/test_views.py +++ b/edx_exams/apps/router/tests/test_views.py @@ -101,7 +101,7 @@ def test_patch_exams(self, mock_register_exams): 'exam_name': 'test practice exam', 'exam_type': 'practice', 'backend': 'mockprock', - 'is_proctored': False, + 'is_proctored': True, 'is_practice_exam': True, }, {