fix: practice exams assigned to wrong type (#33661)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user