Commit e5da5006 by Ben Patterson

Testsonly mode should also skip clearing mongo.

parent 4caed618
...@@ -100,15 +100,16 @@ class BokChoyTestSuite(TestSuite): ...@@ -100,15 +100,16 @@ class BokChoyTestSuite(TestSuite):
def __exit__(self, exc_type, exc_value, traceback): def __exit__(self, exc_type, exc_value, traceback):
super(BokChoyTestSuite, self).__exit__(exc_type, exc_value, traceback) super(BokChoyTestSuite, self).__exit__(exc_type, exc_value, traceback)
msg = colorize('green', "Cleaning up databases...") # Using testsonly will leave all fixtures in place (Note: the db will also be dirtier.)
print msg if self.testsonly:
msg = colorize('green', 'Running in testsonly mode... SKIPPING database cleanup.')
# Clean up data we created in the databases print msg
if not self.testsonly: else:
# Using testsonly will leave all fixtures in place (Note: the db will also be dirtier.) # 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") sh("./manage.py lms --settings bok_choy flush --traceback --noinput")
bokchoy_utils.clear_mongo()
bokchoy_utils.clear_mongo()
def verbosity_processes_string(self): 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