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
0147a5e1
Commit
0147a5e1
authored
Jul 29, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
8e254a6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
edx_proctoring/api.py
+2
-0
edx_proctoring/tests/test_api.py
+2
-0
No files found.
edx_proctoring/api.py
View file @
0147a5e1
...
...
@@ -535,6 +535,8 @@ def get_student_view(user_id, course_id, content_id,
# make sure the attempt has been marked as timed_out, if need be
if
has_time_expired
and
attempt
[
'status'
]
==
ProctoredExamStudentAttemptStatus
.
started
:
mark_exam_attempt_timeout
(
exam_id
,
user_id
)
# refetch since we are transitioning state
attempt
=
get_exam_attempt
(
exam_id
,
user_id
)
if
not
has_started_exam
:
# determine whether to show a timed exam only entrance screen
...
...
edx_proctoring/tests/test_api.py
View file @
0147a5e1
...
...
@@ -42,6 +42,7 @@ from edx_proctoring.models import (
ProctoredExam
,
ProctoredExamStudentAllowance
,
ProctoredExamStudentAttempt
,
ProctoredExamStudentAttemptStatus
,
)
from
.utils
import
(
...
...
@@ -140,6 +141,7 @@ class ProctoredExamApiTests(LoggedInTestCase):
user_id
=
self
.
user_id
,
external_id
=
self
.
external_id
,
started_at
=
started_at
if
started_at
else
datetime
.
now
(
pytz
.
UTC
),
status
=
ProctoredExamStudentAttemptStatus
.
started
,
allowed_time_limit_mins
=
10
)
...
...
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