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
3f065a5f
Commit
3f065a5f
authored
Sep 26, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export xml from the destination store during cross-modulestore import/export tests
parent
b57a5a60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
common/lib/xmodule/xmodule/modulestore/tests/test_cross_modulestore_import_export.py
+12
-3
No files found.
common/lib/xmodule/xmodule/modulestore/tests/test_cross_modulestore_import_export.py
View file @
3f065a5f
...
...
@@ -269,8 +269,8 @@ class CrossStoreXMLRoundtrip(CourseComparisonTest):
with
dest_content_builder
.
build
()
as
dest_content
:
# Construct the modulestore for storing the second import (using the second contentstore)
with
dest_builder
.
build
(
dest_content
)
as
dest_store
:
source_course_key
=
source_store
.
make_course_key
(
'
source'
,
'course'
,
'key
'
)
dest_course_key
=
dest_store
.
make_course_key
(
'
dest'
,
'course'
,
'key
'
)
source_course_key
=
source_store
.
make_course_key
(
'
a'
,
'course'
,
'course
'
)
dest_course_key
=
dest_store
.
make_course_key
(
'
a'
,
'course'
,
'course
'
)
import_from_xml
(
source_store
,
...
...
@@ -287,18 +287,27 @@ class CrossStoreXMLRoundtrip(CourseComparisonTest):
source_content
,
source_course_key
,
self
.
export_dir
,
'exported_course'
,
'exported_
source_
course'
,
)
import_from_xml
(
dest_store
,
'test_user'
,
self
.
export_dir
,
course_dirs
=
[
'exported_source_course'
],
static_content_store
=
dest_content
,
target_course_id
=
dest_course_key
,
create_new_course_if_not_present
=
True
,
)
export_to_xml
(
dest_store
,
dest_content
,
dest_course_key
,
self
.
export_dir
,
'exported_dest_course'
,
)
self
.
exclude_field
(
None
,
'wiki_slug'
)
self
.
exclude_field
(
None
,
'xml_attributes'
)
self
.
ignore_asset_key
(
'_id'
)
...
...
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