From a4b593193df2826187c52daeab1112be46b41f1b Mon Sep 17 00:00:00 2001 From: Zachary Hancock Date: Mon, 6 Nov 2023 16:16:45 -0500 Subject: [PATCH] fix: practice exams assigned to wrong type (#33661) --- cms/djangoapps/contentstore/exams.py | 2 +- cms/djangoapps/contentstore/tests/test_exams.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/exams.py b/cms/djangoapps/contentstore/exams.py index 2dfa72e2d067..f8a88b45dda3 100644 --- a/cms/djangoapps/contentstore/exams.py +++ b/cms/djangoapps/contentstore/exams.py @@ -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: diff --git a/cms/djangoapps/contentstore/tests/test_exams.py b/cms/djangoapps/contentstore/tests/test_exams.py index 6b2f39687e55..12a54278d208 100644 --- a/cms/djangoapps/contentstore/tests/test_exams.py +++ b/cms/djangoapps/contentstore/tests/test_exams.py @@ -60,7 +60,7 @@ def _get_exams_url(self, course_id): @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