Make tests work by default, without having to create any extra directories

This commit is contained in:
Calen Pennington
2012-05-17 11:02:54 -04:00
parent 37abb7aad1
commit a61cbab3d1
4 changed files with 3 additions and 2 deletions

View File

@@ -25,7 +25,8 @@ for app in os.listdir(PROJECT_ROOT / 'djangoapps'):
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
# Local Directories
COURSES_ROOT = PROJECT_ROOT / "test_data"
TEST_ROOT = path("test_root")
COURSES_ROOT = TEST_ROOT / "data"
DATA_DIR = COURSES_ROOT
MAKO_TEMPLATES['course'] = [DATA_DIR]
MAKO_TEMPLATES['sections'] = [DATA_DIR / 'sections']
@@ -34,7 +35,7 @@ MAKO_TEMPLATES['main'] = [PROJECT_ROOT / 'templates',
DATA_DIR / 'info',
DATA_DIR / 'problems']
LOGGING = logsettings.get_logger_config(PROJECT_ROOT / "log",
LOGGING = logsettings.get_logger_config(TEST_ROOT / "log",
logging_env="dev",
tracking_filename="tracking.log",
debug=True)

0
test_root/log/.git-keep Normal file
View File