Fix cms tests after merge from master

This commit is contained in:
Calen Pennington
2014-05-13 16:33:14 -04:00
parent 5c345b3b00
commit 8534ef559d
2 changed files with 3 additions and 4 deletions

View File

@@ -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)

View File

@@ -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
),
)