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
d0919c93
Commit
d0919c93
authored
Jan 08, 2015
by
E. Kolpakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added docstrings
parent
e59071ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
cms/djangoapps/contentstore/tests/test_libraries.py
+3
-0
No files found.
cms/djangoapps/contentstore/tests/test_libraries.py
View file @
d0919c93
...
...
@@ -327,6 +327,7 @@ class TestLibraries(LibraryTestCase):
self
.
assertEqual
(
html_block
.
data
,
data_value
)
def
test_refreshes_children_if_libraries_change
(
self
):
""" Tests that children are automatically refreshed if libraries list changes """
library2key
=
self
.
_create_library
(
"org2"
,
"lib2"
,
"Library2"
)
library2
=
modulestore
()
.
get_library
(
library2key
)
data1
,
data2
=
"Hello world!"
,
"Hello other world!"
...
...
@@ -370,6 +371,7 @@ class TestLibraries(LibraryTestCase):
self
.
assertEqual
(
html_block
.
data
,
data2
)
def
test_refreshes_children_if_capa_type_change
(
self
):
""" Tests that children are automatically refreshed if capa type field changes """
name1
,
name2
=
"Option Problem"
,
"Multiple Choice Problem"
ItemFactory
.
create
(
category
=
"problem"
,
...
...
@@ -420,6 +422,7 @@ class TestLibraries(LibraryTestCase):
self
.
assertEqual
(
html_block
.
display_name
,
name2
)
def
test_refresh_fails_for_unknown_library
(
self
):
""" Tests that refresh children fails if unknown library is configured """
# Create a course:
with
modulestore
()
.
default_store
(
ModuleStoreEnum
.
Type
.
split
):
course
=
CourseFactory
.
create
()
...
...
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