Commit 8534ef55 by Calen Pennington

Fix cms tests after merge from master

parent 5c345b3b
......@@ -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)
......
......@@ -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
),
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment