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
a21303ba
Commit
a21303ba
authored
Jul 09, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Found some other places where the name should be unique
parent
a2020aad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
cms/envs/test.py
+7
-3
lms/envs/test.py
+4
-1
No files found.
cms/envs/test.py
View file @
a21303ba
...
...
@@ -16,6 +16,10 @@ from .common import *
import
os
from
path
import
path
def
seed
():
return
os
.
getppid
()
# Nose Test Runner
INSTALLED_APPS
+=
(
'django_nose'
,)
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
...
...
@@ -46,7 +50,7 @@ MODULESTORE_OPTIONS = {
'default_class'
:
'xmodule.raw_module.RawDescriptor'
,
'host'
:
'localhost'
,
'db'
:
'test_xmodule'
,
'collection'
:
'test_modulestore
'
,
'collection'
:
'test_modulestore
_
%
s'
%
seed
()
,
'fs_root'
:
TEST_ROOT
/
"data"
,
'render_template'
:
'mitxmako.shortcuts.render_to_string'
,
}
...
...
@@ -70,7 +74,7 @@ CONTENTSTORE = {
'ENGINE'
:
'xmodule.contentstore.mongo.MongoContentStore'
,
'OPTIONS'
:
{
'host'
:
'localhost'
,
'db'
:
'test_xcontent
'
,
'db'
:
'test_xcontent
_
%
s'
%
seed
()
,
},
# allow for additional options that can be keyed on a name, e.g. 'trashcan'
'ADDITIONAL_OPTIONS'
:
{
...
...
@@ -83,7 +87,7 @@ CONTENTSTORE = {
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'NAME'
:
TEST_ROOT
/
"db"
/
"cms
.db"
,
'NAME'
:
TEST_ROOT
/
"db"
/
"cms
_
%
s.db"
%
seed
()
,
},
}
...
...
lms/envs/test.py
View file @
a21303ba
...
...
@@ -16,6 +16,9 @@ from .common import *
import
os
from
path
import
path
def
seed
():
return
os
.
getppid
()
# can't test start dates with this True, but on the other hand,
# can test everything else :)
MITX_FEATURES
[
'DISABLE_START_DATES'
]
=
True
...
...
@@ -101,7 +104,7 @@ MODULESTORE = {
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'NAME'
:
TEST_ROOT
/
'db'
/
'mitx
.db'
'NAME'
:
TEST_ROOT
/
'db'
/
'mitx
_
%
s.db'
%
seed
()
},
}
...
...
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