Commit 7c343a39 by Chris Dodge

when creating an attempt past due date, the status should be marked to 'expire'

parent ee4a2443
......@@ -475,7 +475,7 @@ def create_exam_attempt(exam_id, user_id, taking_as_proctored=False):
update_attempt_status(
exam_id,
user_id,
ProctoredExamStudentAttemptStatus.declined
ProctoredExamStudentAttemptStatus.expired
)
log_msg = (
......
......@@ -524,7 +524,7 @@ class ProctoredExamApiTests(LoggedInTestCase):
with freeze_time(reset_time):
attempt_id = create_exam_attempt(exam_id, self.user_id)
attempt = get_exam_attempt_by_id(attempt_id)
self.assertEqual(attempt['status'], ProctoredExamStudentAttemptStatus.declined)
self.assertEqual(attempt['status'], ProctoredExamStudentAttemptStatus.expired)
def test_create_an_exam_attempt(self):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment