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
a4922766
Commit
a4922766
authored
Nov 17, 2016
by
Toby Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
undo the test shenanigans i was doing
parent
5e40dfa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
lms/djangoapps/courseware/tests/test_word_cloud.py
+3
-10
No files found.
lms/djangoapps/courseware/tests/test_word_cloud.py
View file @
a4922766
...
...
@@ -250,15 +250,9 @@ class TestWordCloud(BaseTestXmodule):
)
def
test_word_cloud_constructor
(
self
):
"""Make sure that all parameters extracted correctly from xml"""
js_includes
=
[
self
.
_get_resource_url
(
'public/js/d3.min.js'
),
self
.
_get_resource_url
(
'public/js/d3.layout.cloud.js'
),
self
.
_get_resource_url
(
'public/js/word_cloud.js'
),
self
.
_get_resource_url
(
'public/js/word_cloud_main.js'
),
]
"""
Make sure that all parameters extracted correctly from xml.
"""
fragment
=
self
.
runtime
.
render
(
self
.
item_descriptor
,
STUDENT_VIEW
)
expected_context
=
{
'ajax_url'
:
self
.
item_descriptor
.
xmodule_runtime
.
ajax_url
,
...
...
@@ -268,7 +262,6 @@ class TestWordCloud(BaseTestXmodule):
'element_id'
:
self
.
item_descriptor
.
location
.
html_id
(),
'num_inputs'
:
5
,
# default value
'submitted'
:
False
,
# default value,
'js_includes'
:
js_includes
,
}
self
.
assertEqual
(
fragment
.
content
,
self
.
runtime
.
render_template
(
'word_cloud.html'
,
expected_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