Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
a4c912a0
Commit
a4c912a0
authored
May 28, 2014
by
lduarte1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotation Tools: Fixing tests for student_view
Fixed typo from autocomplete Fixed dict for tests
parent
1d6f3c63
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
common/lib/xmodule/xmodule/tests/test_imageannotation.py
+2
-2
common/lib/xmodule/xmodule/tests/test_textannotation.py
+2
-2
common/lib/xmodule/xmodule/tests/test_videoannotation.py
+2
-2
No files found.
common/lib/xmodule/xmodule/tests/test_imageannotation.py
View file @
a4c912a0
...
@@ -69,10 +69,10 @@ class ImageAnnotationModuleTestCase(unittest.TestCase):
...
@@ -69,10 +69,10 @@ class ImageAnnotationModuleTestCase(unittest.TestCase):
actual
=
self
.
mod
.
_extract_instructions
(
xmltree
)
# pylint: disable=protected-access
actual
=
self
.
mod
.
_extract_instructions
(
xmltree
)
# pylint: disable=protected-access
self
.
assertIsNone
(
actual
)
self
.
assertIsNone
(
actual
)
def
test_
get_html
(
self
):
def
test_
student_view
(
self
):
"""
"""
Tests the function that passes in all the information in the context that will be used in templates/textannotation.html
Tests the function that passes in all the information in the context that will be used in templates/textannotation.html
"""
"""
context
=
self
.
mod
.
get_html
()
context
=
self
.
mod
.
student_view
({})
.
content
for
key
in
[
'display_name'
,
'instructions_html'
,
'annotation_storage'
,
'token'
,
'tag'
,
'openseadragonjson'
]:
for
key
in
[
'display_name'
,
'instructions_html'
,
'annotation_storage'
,
'token'
,
'tag'
,
'openseadragonjson'
]:
self
.
assertIn
(
key
,
context
)
self
.
assertIn
(
key
,
context
)
common/lib/xmodule/xmodule/tests/test_textannotation.py
View file @
a4c912a0
...
@@ -54,10 +54,10 @@ class TextAnnotationModuleTestCase(unittest.TestCase):
...
@@ -54,10 +54,10 @@ class TextAnnotationModuleTestCase(unittest.TestCase):
actual
=
self
.
mod
.
_extract_instructions
(
xmltree
)
# pylint: disable=W0212
actual
=
self
.
mod
.
_extract_instructions
(
xmltree
)
# pylint: disable=W0212
self
.
assertIsNone
(
actual
)
self
.
assertIsNone
(
actual
)
def
test_
get_html
(
self
):
def
test_
student_view
(
self
):
"""
"""
Tests the function that passes in all the information in the context that will be used in templates/textannotation.html
Tests the function that passes in all the information in the context that will be used in templates/textannotation.html
"""
"""
context
=
self
.
mod
.
get_html
()
context
=
self
.
mod
.
student_view
({})
.
content
for
key
in
[
'display_name'
,
'tag'
,
'source'
,
'instructions_html'
,
'content_html'
,
'annotation_storage'
,
'token'
]:
for
key
in
[
'display_name'
,
'tag'
,
'source'
,
'instructions_html'
,
'content_html'
,
'annotation_storage'
,
'token'
]:
self
.
assertIn
(
key
,
context
)
self
.
assertIn
(
key
,
context
)
common/lib/xmodule/xmodule/tests/test_videoannotation.py
View file @
a4c912a0
...
@@ -62,10 +62,10 @@ class VideoAnnotationModuleTestCase(unittest.TestCase):
...
@@ -62,10 +62,10 @@ class VideoAnnotationModuleTestCase(unittest.TestCase):
self
.
assertEqual
(
expectedyoutube
,
result2
)
self
.
assertEqual
(
expectedyoutube
,
result2
)
self
.
assertEqual
(
expectednotyoutube
,
result1
)
self
.
assertEqual
(
expectednotyoutube
,
result1
)
def
test_
get_html
(
self
):
def
test_
student_view
(
self
):
"""
"""
Tests to make sure variables passed in truly exist within the html once it is all rendered.
Tests to make sure variables passed in truly exist within the html once it is all rendered.
"""
"""
context
=
self
.
mod
.
get_html
()
context
=
self
.
mod
.
student_view
({})
.
content
for
key
in
[
'display_name'
,
'instructions_html'
,
'sourceUrl'
,
'typeSource'
,
'poster'
,
'annotation_storage'
]:
for
key
in
[
'display_name'
,
'instructions_html'
,
'sourceUrl'
,
'typeSource'
,
'poster'
,
'annotation_storage'
]:
self
.
assertIn
(
key
,
context
)
self
.
assertIn
(
key
,
context
)
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