Unit Test Improvements
TE-489
This commit is contained in:
@@ -116,7 +116,7 @@ def split_mongo_store_config(data_dir):
|
||||
return store
|
||||
|
||||
|
||||
def xml_store_config(data_dir):
|
||||
def xml_store_config(data_dir, course_dirs=None):
|
||||
"""
|
||||
Defines default module store using XMLModuleStore.
|
||||
"""
|
||||
@@ -127,6 +127,7 @@ def xml_store_config(data_dir):
|
||||
'OPTIONS': {
|
||||
'data_dir': data_dir,
|
||||
'default_class': 'xmodule.hidden_module.HiddenDescriptor',
|
||||
'course_dirs': course_dirs,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,8 @@ from xmodule.modulestore.tests.mongo_connection import MONGO_PORT_NUM, MONGO_HOS
|
||||
from xmodule.modulestore.inheritance import InheritanceMixin
|
||||
from xmodule.x_module import XModuleMixin
|
||||
|
||||
TEST_DATA_DIR = 'common/test/data/'
|
||||
|
||||
|
||||
COMMON_DOCSTORE_CONFIG = {
|
||||
'host': MONGO_HOST,
|
||||
@@ -289,7 +291,7 @@ class CrossStoreXMLRoundtrip(CourseComparisonTest):
|
||||
import_from_xml(
|
||||
source_store,
|
||||
'test_user',
|
||||
'common/test/data',
|
||||
TEST_DATA_DIR,
|
||||
course_dirs=[course_data_name],
|
||||
static_content_store=source_content,
|
||||
target_course_id=source_course_key,
|
||||
|
||||
Reference in New Issue
Block a user