Change the default dir for loading xml files.

This should always be overridden by the testcases if needed.
This commit is contained in:
Jesse Zoldak
2014-12-01 15:24:18 -05:00
parent 5007e98034
commit 789a9dc978

View File

@@ -15,8 +15,9 @@ sessions. Assumes structure:
from .common import *
import os
from path import path
from warnings import filterwarnings, simplefilter
from tempfile import mkdtemp
from uuid import uuid4
from warnings import filterwarnings, simplefilter
# mongo connection settings
MONGO_PORT_NUM = int(os.environ.get('EDXAPP_TEST_MONGO_PORT', '27017'))
@@ -130,7 +131,7 @@ update_module_store_settings(
'fs_root': TEST_ROOT / "data",
},
xml_store_options={
'data_dir': COMMON_TEST_DATA_ROOT,
'data_dir': mkdtemp(), # never inadvertently load all the XML courses
},
doc_store_settings={
'host': MONGO_HOST,