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
789b7110
Commit
789b7110
authored
Jun 27, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Acceptance tests now pull from their own unique database
These databases/collections are cleared after harvest
parent
433e5e90
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
cms/envs/acceptance.py
+2
-2
common/djangoapps/terrain/browser.py
+6
-0
lms/envs/acceptance.py
+3
-2
No files found.
cms/envs/acceptance.py
View file @
789b7110
...
...
@@ -21,7 +21,7 @@ MODULESTORE_OPTIONS = {
'default_class'
:
'xmodule.raw_module.RawDescriptor'
,
'host'
:
'localhost'
,
'db'
:
'test_xmodule'
,
'collection'
:
'acceptance_modulestore
'
,
'collection'
:
'acceptance_modulestore
_
%
s'
%
uuid4
()
.
hex
,
'fs_root'
:
TEST_ROOT
/
"data"
,
'render_template'
:
'mitxmako.shortcuts.render_to_string'
,
}
...
...
@@ -45,7 +45,7 @@ CONTENTSTORE = {
'ENGINE'
:
'xmodule.contentstore.mongo.MongoContentStore'
,
'OPTIONS'
:
{
'host'
:
'localhost'
,
'db'
:
'acceptance_xcontent
'
,
'db'
:
'acceptance_xcontent
_
%
s'
%
uuid4
()
.
hex
,
},
# allow for additional options that can be keyed on a name, e.g. 'trashcan'
'ADDITIONAL_OPTIONS'
:
{
...
...
common/djangoapps/terrain/browser.py
View file @
789b7110
...
...
@@ -17,6 +17,8 @@ from selenium.common.exceptions import WebDriverException
# These names aren't used, but do important work on import.
from
lms
import
one_time_startup
# pylint: disable=W0611
from
cms
import
one_time_startup
# pylint: disable=W0611
from
pymongo
import
MongoClient
import
xmodule.modulestore.django
# There is an import issue when using django-staticfiles with lettuce
# Lettuce assumes that we are using django.contrib.staticfiles,
...
...
@@ -103,3 +105,7 @@ def teardown_browser(total):
Quit the browser after executing the tests.
"""
world
.
browser
.
quit
()
mongo
=
MongoClient
()
mongo
.
drop_database
(
settings
.
CONTENTSTORE
[
'OPTIONS'
][
'db'
])
modulestore
=
xmodule
.
modulestore
.
django
.
modulestore
()
modulestore
.
collection
.
drop
()
lms/envs/acceptance.py
View file @
789b7110
...
...
@@ -16,13 +16,14 @@ DEBUG = True
# Disable warnings for acceptance tests, to make the logs readable
import
logging
logging
.
disable
(
logging
.
ERROR
)
from
uuid
import
uuid4
# Use the mongo store for acceptance tests
modulestore_options
=
{
'default_class'
:
'xmodule.raw_module.RawDescriptor'
,
'host'
:
'localhost'
,
'db'
:
'test_xmodule'
,
'collection'
:
'acceptance_modulestore
'
,
'collection'
:
'acceptance_modulestore
_
%
s'
%
uuid4
()
.
hex
,
'fs_root'
:
TEST_ROOT
/
"data"
,
'render_template'
:
'mitxmako.shortcuts.render_to_string'
,
}
...
...
@@ -42,7 +43,7 @@ CONTENTSTORE = {
'ENGINE'
:
'xmodule.contentstore.mongo.MongoContentStore'
,
'OPTIONS'
:
{
'host'
:
'localhost'
,
'db'
:
'
test_xmodule'
,
'db'
:
'
acceptance_xcontent_
%
s'
%
uuid4
()
.
hex
,
}
}
...
...
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