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
5580c995
Commit
5580c995
authored
Jul 27, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve tests
parent
dae5836f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
edx_proctoring/tests/test_views.py
+6
-5
No files found.
edx_proctoring/tests/test_views.py
View file @
5580c995
...
@@ -1008,7 +1008,8 @@ class TestStudentProctoredExamAttempt(LoggedInTestCase):
...
@@ -1008,7 +1008,8 @@ class TestStudentProctoredExamAttempt(LoggedInTestCase):
def
test_review_caseinsensitive
(
self
):
def
test_review_caseinsensitive
(
self
):
"""
"""
Simulates a callback from the proctoring service with the
Simulates a callback from the proctoring service with the
review data
review data when we have different casing on the
external_id property
"""
"""
exam_id
=
create_exam
(
exam_id
=
create_exam
(
...
@@ -1042,10 +1043,10 @@ class TestStudentProctoredExamAttempt(LoggedInTestCase):
...
@@ -1042,10 +1043,10 @@ class TestStudentProctoredExamAttempt(LoggedInTestCase):
)
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertEqual
(
response
.
status_code
,
200
)
def
test_review_
no
_contenttype
(
self
):
def
test_review_
bad
_contenttype
(
self
):
"""
"""
Simulates a callback from the proctoring service w
ith
the
Simulates a callback from the proctoring service w
hen
the
review data
Content-Type is malformed
"""
"""
exam_id
=
create_exam
(
exam_id
=
create_exam
(
...
@@ -1075,7 +1076,7 @@ class TestStudentProctoredExamAttempt(LoggedInTestCase):
...
@@ -1075,7 +1076,7 @@ class TestStudentProctoredExamAttempt(LoggedInTestCase):
response
=
self
.
client
.
post
(
response
=
self
.
client
.
post
(
reverse
(
'edx_proctoring.anonymous.proctoring_review_callback'
),
reverse
(
'edx_proctoring.anonymous.proctoring_review_callback'
),
data
=
test_payload
,
data
=
test_payload
,
content_type
=
'
application/json
'
content_type
=
'
foo
'
)
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertEqual
(
response
.
status_code
,
200
)
...
...
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