Commit e8be6b31 by Calen Pennington

Get jasmine tests running on cms

parent 6d5a1264
...@@ -68,9 +68,7 @@ MAKO_TEMPLATES['main'] = [ ...@@ -68,9 +68,7 @@ MAKO_TEMPLATES['main'] = [
for namespace, template_dirs in lms.envs.common.MAKO_TEMPLATES.iteritems(): for namespace, template_dirs in lms.envs.common.MAKO_TEMPLATES.iteritems():
MAKO_TEMPLATES['lms.' + namespace] = template_dirs MAKO_TEMPLATES['lms.' + namespace] = template_dirs
TEMPLATE_DIRS = ( TEMPLATE_DIRS = MAKO_TEMPLATES['main']
PROJECT_ROOT / "templates",
)
MITX_ROOT_URL = '' MITX_ROOT_URL = ''
...@@ -88,10 +86,6 @@ TEMPLATE_CONTEXT_PROCESSORS = ( ...@@ -88,10 +86,6 @@ TEMPLATE_CONTEXT_PROCESSORS = (
LMS_BASE = None LMS_BASE = None
################################# Jasmine ###################################
JASMINE_TEST_DIRECTORY = PROJECT_ROOT + '/static/coffee'
#################### CAPA External Code Evaluation ############################# #################### CAPA External Code Evaluation #############################
XQUEUE_INTERFACE = { XQUEUE_INTERFACE = {
'url': 'http://localhost:8888', 'url': 'http://localhost:8888',
...@@ -289,7 +283,4 @@ INSTALLED_APPS = ( ...@@ -289,7 +283,4 @@ INSTALLED_APPS = (
# For asset pipelining # For asset pipelining
'pipeline', 'pipeline',
'staticfiles', 'staticfiles',
# For testing
'django_jasmine',
) )
...@@ -28,4 +28,8 @@ PIPELINE_JS['spec'] = { ...@@ -28,4 +28,8 @@ PIPELINE_JS['spec'] = {
'output_filename': 'js/cms-spec.js' 'output_filename': 'js/cms-spec.js'
} }
JASMINE_TEST_DIRECTORY = PROJECT_ROOT + '/static/coffee'
STATICFILES_DIRS.append(COMMON_ROOT / 'test' / 'phantom-jasmine' / 'lib') STATICFILES_DIRS.append(COMMON_ROOT / 'test' / 'phantom-jasmine' / 'lib')
INSTALLED_APPS += ('django_jasmine', )
...@@ -537,9 +537,6 @@ INSTALLED_APPS = ( ...@@ -537,9 +537,6 @@ INSTALLED_APPS = (
'wiki.plugins.notifications', 'wiki.plugins.notifications',
'course_wiki.plugins.markdownedx', 'course_wiki.plugins.markdownedx',
# For testing
'django_jasmine',
# Discussion # Discussion
'django_comment_client', 'django_comment_client',
......
...@@ -28,4 +28,8 @@ PIPELINE_JS['spec'] = { ...@@ -28,4 +28,8 @@ PIPELINE_JS['spec'] = {
'output_filename': 'js/lms-spec.js' 'output_filename': 'js/lms-spec.js'
} }
JASMINE_TEST_DIRECTORY = PROJECT_ROOT + '/static/coffee'
STATICFILES_DIRS.append(COMMON_ROOT / 'test' / 'phantom-jasmine' / 'lib') STATICFILES_DIRS.append(COMMON_ROOT / 'test' / 'phantom-jasmine' / 'lib')
INSTALLED_APPS += ('django_jasmine', )
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