Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
0e9e78fa
Commit
0e9e78fa
authored
Aug 12, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
when a timeout occurs, state transition to submitted since the user has no choice but to submit
parent
f33e09d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
edx_proctoring/api.py
+1
-1
edx_proctoring/tests/test_api.py
+3
-3
No files found.
edx_proctoring/api.py
View file @
0e9e78fa
...
...
@@ -518,7 +518,7 @@ def update_attempt_status(exam_id, user_id, to_status, raise_if_not_found=True):
not
settings
.
PROCTORING_SETTINGS
.
get
(
'ALLOW_TIMED_OUT_STATE'
,
False
)
)
if
alias_timeout
:
to_status
=
ProctoredExamStudentAttemptStatus
.
ready_to_submit
to_status
=
ProctoredExamStudentAttemptStatus
.
submitted
exam_attempt_obj
=
ProctoredExamStudentAttempt
.
objects
.
get_exam_attempt
(
exam_id
,
user_id
)
if
exam_attempt_obj
is
None
:
...
...
edx_proctoring/tests/test_api.py
View file @
0e9e78fa
...
...
@@ -487,7 +487,7 @@ class ProctoredExamApiTests(LoggedInTestCase):
proctored_exam_student_attempt
=
self
.
_create_unstarted_exam_attempt
()
self
.
assertIsNone
(
proctored_exam_student_attempt
.
completed_at
)
proctored_exam_attempt_id
=
mark_exam_attempt_timeout
(
proctored_exam_student_attempt
.
proctored_exam
,
self
.
user_id
proctored_exam_student_attempt
.
proctored_exam
.
id
,
self
.
user_id
)
self
.
assertEqual
(
proctored_exam_student_attempt
.
id
,
proctored_exam_attempt_id
)
...
...
@@ -1116,7 +1116,7 @@ class ProctoredExamApiTests(LoggedInTestCase):
def
test_alias_timed_out
(
self
):
"""
Verified that timed_out will automatically state transition
to
ready_to_submit
to
submitted
"""
exam_attempt
=
self
.
_create_started_exam_attempt
()
...
...
@@ -1130,7 +1130,7 @@ class ProctoredExamApiTests(LoggedInTestCase):
self
.
assertEqual
(
exam_attempt
[
'status'
],
ProctoredExamStudentAttemptStatus
.
ready_to_submit
ProctoredExamStudentAttemptStatus
.
submitted
)
def
test_update_unexisting_attempt
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment