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
b0d70008
Commit
b0d70008
authored
Jun 28, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed when the databases are reset
This might allow parallel features in the future
parent
789b7110
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
cms/envs/acceptance.py
+1
-0
common/djangoapps/terrain/browser.py
+12
-4
No files found.
cms/envs/acceptance.py
View file @
b0d70008
...
...
@@ -16,6 +16,7 @@ DEBUG = True
# Disable warnings for acceptance tests, to make the logs readable
import
logging
logging
.
disable
(
logging
.
ERROR
)
from
uuid
import
uuid4
MODULESTORE_OPTIONS
=
{
'default_class'
:
'xmodule.raw_module.RawDescriptor'
,
...
...
common/djangoapps/terrain/browser.py
View file @
b0d70008
...
...
@@ -19,6 +19,7 @@ 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
from
xmodule.contentstore.django
import
_CONTENTSTORE
# There is an import issue when using django-staticfiles with lettuce
# Lettuce assumes that we are using django.contrib.staticfiles,
...
...
@@ -89,6 +90,17 @@ def reset_data(scenario):
LOGGER
.
debug
(
"Flushing the test database..."
)
call_command
(
'flush'
,
interactive
=
False
)
@after.each_scenario
def
reset_databases
(
scenario
):
mongo
=
MongoClient
()
mongo
.
drop_database
(
settings
.
CONTENTSTORE
[
'OPTIONS'
][
'db'
])
_CONTENTSTORE
.
clear
()
modulestore
=
xmodule
.
modulestore
.
django
.
modulestore
()
modulestore
.
collection
.
drop
()
xmodule
.
modulestore
.
django
.
_MODULESTORES
.
clear
()
# Uncomment below to trigger a screenshot on error
# @after.each_scenario
def
screenshot_on_error
(
scenario
):
...
...
@@ -105,7 +117,3 @@ 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
()
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