Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e8be6b31
Commit
e8be6b31
authored
Oct 30, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get jasmine tests running on cms
parent
6d5a1264
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
cms/envs/common.py
+1
-10
cms/envs/jasmine.py
+4
-0
lms/envs/common.py
+0
-3
lms/envs/jasmine.py
+4
-0
No files found.
cms/envs/common.py
View file @
e8be6b31
...
@@ -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'
,
)
)
cms/envs/jasmine.py
View file @
e8be6b31
...
@@ -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'
,
)
lms/envs/common.py
View file @
e8be6b31
...
@@ -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'
,
...
...
lms/envs/jasmine.py
View file @
e8be6b31
...
@@ -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'
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment