fix: practice exams assigned to wrong type (#33661)

This commit is contained in:
Zachary Hancock
2023-11-06 16:16:45 -05:00
committed by GitHub
parent 32bb4c5057
commit a4b593193d
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ def get_exam_type(is_proctored, is_practice, is_onboarding):
if is_onboarding:
exam_type = 'onboarding'
elif is_practice:
exam_type = 'practice_proctored'
exam_type = 'practice'
else:
exam_type = 'proctored'
else:

View File

@@ -60,7 +60,7 @@ class TestExamService(ModuleStoreTestCase):
@ddt.data(
(False, False, False, 'timed'),
(True, False, False, 'proctored'),
(True, True, False, 'practice_proctored'),
(True, True, False, 'practice'),
(True, True, True, 'onboarding'),
)
@ddt.unpack