Skip to content

Commit

Permalink
fix: practice exams assigned to wrong type (#33661)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharis278 authored Nov 6, 2023
1 parent 32bb4c5 commit a4b5931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/exams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/tests/test_exams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4b5931

Please sign in to comment.