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
5a36b7c3
Commit
5a36b7c3
authored
Apr 08, 2013
by
Vasyl Nakvasiuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Word cloud: add test_import
parent
dd5a7e7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
common/lib/xmodule/xmodule/tests/test_import.py
+17
-1
No files found.
common/lib/xmodule/xmodule/tests/test_import.py
View file @
5a36b7c3
...
@@ -382,7 +382,7 @@ class ImportTestCase(BaseCourseTestCase):
...
@@ -382,7 +382,7 @@ class ImportTestCase(BaseCourseTestCase):
self
.
assertEqual
(
len
(
video
.
url_name
),
len
(
'video_'
)
+
12
)
self
.
assertEqual
(
len
(
video
.
url_name
),
len
(
'video_'
)
+
12
)
def
test_poll_and_conditional_
xmodule
(
self
):
def
test_poll_and_conditional_
import
(
self
):
modulestore
=
XMLModuleStore
(
DATA_DIR
,
course_dirs
=
[
'conditional_and_poll'
])
modulestore
=
XMLModuleStore
(
DATA_DIR
,
course_dirs
=
[
'conditional_and_poll'
])
course
=
modulestore
.
get_courses
()[
0
]
course
=
modulestore
.
get_courses
()[
0
]
...
@@ -423,6 +423,22 @@ class ImportTestCase(BaseCourseTestCase):
...
@@ -423,6 +423,22 @@ class ImportTestCase(BaseCourseTestCase):
<plot style="margin-top:15px;margin-bottom:15px;"/>"""
.
strip
()
<plot style="margin-top:15px;margin-bottom:15px;"/>"""
.
strip
()
self
.
assertEqual
(
gst_sample
.
render
,
render_string_from_sample_gst_xml
)
self
.
assertEqual
(
gst_sample
.
render
,
render_string_from_sample_gst_xml
)
def
test_word_cloud_import
(
self
):
modulestore
=
XMLModuleStore
(
DATA_DIR
,
course_dirs
=
[
'word_cloud'
])
course
=
modulestore
.
get_courses
()[
0
]
chapters
=
course
.
get_children
()
ch1
=
chapters
[
0
]
sections
=
ch1
.
get_children
()
self
.
assertEqual
(
len
(
sections
),
1
)
location
=
course
.
location
location
=
Location
(
location
.
tag
,
location
.
org
,
location
.
course
,
'sequential'
,
'Problem_Demos'
)
module
=
modulestore
.
get_instance
(
course
.
id
,
location
)
self
.
assertEqual
(
len
(
module
.
children
),
2
)
def
test_cohort_config
(
self
):
def
test_cohort_config
(
self
):
"""
"""
Check that cohort config parsing works right.
Check that cohort config parsing works right.
...
...
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