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
8534ef55
Commit
8534ef55
authored
May 13, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cms tests after merge from master
parent
5c345b3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
cms/djangoapps/contentstore/tests/test_import.py
+2
-2
common/lib/xmodule/xmodule/modulestore/xml_exporter.py
+1
-2
No files found.
cms/djangoapps/contentstore/tests/test_import.py
View file @
8534ef55
...
...
@@ -88,12 +88,12 @@ class ContentStoreImportTest(ModuleStoreTestCase):
# Checks to make sure that a course with an org/course like
# edx/course can be imported into a namespace with an org/course
# like edx/course_name
module_store
,
__
,
__
,
course_location
=
self
.
load_test_import_course
()
module_store
,
__
,
course
=
self
.
load_test_import_course
()
__
,
course_items
=
import_from_xml
(
module_store
,
'common/test/data'
,
[
'test_import_course_2'
],
target_
location_namespace
=
course_location
,
target_
course_id
=
course
.
id
,
verbose
=
True
,
)
self
.
assertEqual
(
len
(
course_items
),
1
)
...
...
common/lib/xmodule/xmodule/modulestore/xml_exporter.py
View file @
8534ef55
...
...
@@ -86,8 +86,7 @@ def export_to_xml(modulestore, contentstore, course_key, root_dir, course_dir, d
try
:
course_image
=
contentstore
.
find
(
StaticContent
.
compute_location
(
course
.
location
.
org
,
course
.
location
.
course
,
course
.
id
,
course
.
course_image
),
)
...
...
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