Skip to content

Commit

Permalink
test: missed a spot
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharis278 committed Oct 5, 2023
1 parent fd04818 commit a401e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edx_exams/apps/core/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,15 +639,15 @@ 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')
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,
Expand Down

0 comments on commit a401e37

Please sign in to comment.