Commit 789a9dc9 by Jesse Zoldak

Change the default dir for loading xml files.

This should always be overridden by the testcases if needed.
parent 5007e980
...@@ -15,8 +15,9 @@ sessions. Assumes structure: ...@@ -15,8 +15,9 @@ sessions. Assumes structure:
from .common import * from .common import *
import os import os
from path import path from path import path
from warnings import filterwarnings, simplefilter from tempfile import mkdtemp
from uuid import uuid4 from uuid import uuid4
from warnings import filterwarnings, simplefilter
# mongo connection settings # mongo connection settings
MONGO_PORT_NUM = int(os.environ.get('EDXAPP_TEST_MONGO_PORT', '27017')) MONGO_PORT_NUM = int(os.environ.get('EDXAPP_TEST_MONGO_PORT', '27017'))
...@@ -130,7 +131,7 @@ update_module_store_settings( ...@@ -130,7 +131,7 @@ update_module_store_settings(
'fs_root': TEST_ROOT / "data", 'fs_root': TEST_ROOT / "data",
}, },
xml_store_options={ xml_store_options={
'data_dir': COMMON_TEST_DATA_ROOT, 'data_dir': mkdtemp(), # never inadvertently load all the XML courses
}, },
doc_store_settings={ doc_store_settings={
'host': MONGO_HOST, 'host': MONGO_HOST,
......
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