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
2e868cba
Commit
2e868cba
authored
Aug 03, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one more test
parent
d065defc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
edx_proctoring/tests/test_api.py
+26
-0
No files found.
edx_proctoring/tests/test_api.py
View file @
2e868cba
# pylint: disable=too-many-lines
"""
All tests for the models.py
"""
...
...
@@ -706,6 +708,30 @@ class ProctoredExamApiTests(LoggedInTestCase):
# here, we should get proctoring content
self
.
assertIsNotNone
(
rendered_response
)
# user doesn't have pre-requisites on reverification
rendered_response
=
get_student_view
(
user_id
=
self
.
user_id
,
course_id
=
self
.
course_id
,
content_id
=
self
.
content_id
,
context
=
{
'is_proctored'
:
True
,
'display_name'
:
self
.
exam_name
,
'default_time_limit_mins'
:
90
,
'credit_state'
:
{
'enrollment_mode'
:
'verified'
,
'credit_requirement_status'
:
[
{
'namespace'
:
'grade'
,
'status'
:
'failed'
,
}
]
},
'is_practice_exam'
:
False
}
)
# here, we should get proctoring content
self
.
assertIsNotNone
(
rendered_response
)
def
test_student_view_non_student
(
self
):
"""
Make sure that if we ask for a student view if we are not in a student role,
...
...
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