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
e5da5006
Commit
e5da5006
authored
Feb 02, 2016
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testsonly mode should also skip clearing mongo.
parent
4caed618
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
pavelib/utils/test/suites/bokchoy_suite.py
+9
-8
No files found.
pavelib/utils/test/suites/bokchoy_suite.py
View file @
e5da5006
...
...
@@ -100,15 +100,16 @@ class BokChoyTestSuite(TestSuite):
def
__exit__
(
self
,
exc_type
,
exc_value
,
traceback
):
super
(
BokChoyTestSuite
,
self
)
.
__exit__
(
exc_type
,
exc_value
,
traceback
)
msg
=
colorize
(
'green'
,
"Cleaning up databases..."
)
print
msg
# Clean up data we created in the databases
if
not
self
.
testsonly
:
# Using testsonly will leave all fixtures in place (Note: the db will also be dirtier.)
# Using testsonly will leave all fixtures in place (Note: the db will also be dirtier.)
if
self
.
testsonly
:
msg
=
colorize
(
'green'
,
'Running in testsonly mode... SKIPPING database cleanup.'
)
print
msg
else
:
# Clean up data we created in the databases
msg
=
colorize
(
'green'
,
"Cleaning up databases..."
)
print
msg
sh
(
"./manage.py lms --settings bok_choy flush --traceback --noinput"
)
bokchoy_utils
.
clear_mongo
()
bokchoy_utils
.
clear_mongo
()
def
verbosity_processes_string
(
self
):
"""
...
...
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