Commit 4caed618 by Ben Patterson

Do not flush the database when using bok-choy in testsonly mode.

Testsonly will not work currently, because the database flush will
remove some data fixtures. Even when they are loaded at the beginning
of the next test run, there are database corruptions. Instead of
flushing, do not do anything with the database at the end of the
testsonly test run. That way, tests that use dynamic data can be
run many times in a row.
parent 9d5a4a24
......@@ -104,7 +104,10 @@ class BokChoyTestSuite(TestSuite):
print msg
# Clean up data we created in the databases
sh("./manage.py lms --settings bok_choy flush --traceback --noinput")
if not self.testsonly:
# Using testsonly will leave all fixtures in place (Note: the db will also be dirtier.)
sh("./manage.py lms --settings bok_choy flush --traceback --noinput")
bokchoy_utils.clear_mongo()
def verbosity_processes_string(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment