From 72023cb5d2f45a85f406225a64ce2b57d95e6b19 Mon Sep 17 00:00:00 2001 From: Jay Zoldak Date: Mon, 4 Feb 2013 17:15:54 -0500 Subject: [PATCH] Improve docstring wording for ModuleStoreTestCase class. --- cms/djangoapps/contentstore/tests/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cms/djangoapps/contentstore/tests/utils.py b/cms/djangoapps/contentstore/tests/utils.py index 7ed2b33e63..7fa5b76685 100644 --- a/cms/djangoapps/contentstore/tests/utils.py +++ b/cms/djangoapps/contentstore/tests/utils.py @@ -13,8 +13,9 @@ from xmodule.templates import update_templates class ModuleStoreTestCase(TestCase): """ Subclass for any test case that uses the mongodb - module store. This clears it out before running the TestCase - and reinitilizes it with the templates afterwards. """ + module store. This populates a uniquely named modulestore + collection with templates before running the TestCase + and drops it they are finished. """ def _pre_setup(self): super(ModuleStoreTestCase, self)._pre_setup() @@ -36,7 +37,6 @@ class ModuleStoreTestCase(TestCase): # from the bash shell to drop it: # $ mongo test_xmodule --eval "db.dropDatabase()" xmodule.modulestore.django._MODULESTORES = {} - xmodule.modulestore.django.modulestore().collection.drop() update_templates() def _post_teardown(self):