diff --git a/edx_exams/apps/core/tests/test_api.py b/edx_exams/apps/core/tests/test_api.py index d5155fd2..5d75f197 100644 --- a/edx_exams/apps/core/tests/test_api.py +++ b/edx_exams/apps/core/tests/test_api.py @@ -639,7 +639,7 @@ def test_reset_exam_attempt(self): """ Test that an exam attempt is deleted """ - delete_exam_attempt(self.exam_attempt, self.user) + reset_exam_attempt(self.exam_attempt, self.user) self.assertFalse(ExamAttempt.objects.filter(id=self.exam_attempt.id).exists()) @patch('edx_exams.apps.core.signals.signals.EXAM_ATTEMPT_RESET.send_event') @@ -647,7 +647,7 @@ def test_event_emitted(self, mock_event_send): """ Test that when an exam attempt is reset, the EXAM_ATTEMPT_RESET event is emitted. """ - delete_exam_attempt(self.exam_attempt, self.user) + reset_exam_attempt(self.exam_attempt, self.user) user_data = UserData( id=self.student_user.id,