Commit fa18b48f by JonahStanley

Contentstore singleton is now cleared during teardown

parent 51f8c0cf
...@@ -41,6 +41,7 @@ from xmodule.exceptions import NotFoundError ...@@ -41,6 +41,7 @@ from xmodule.exceptions import NotFoundError
from django_comment_common.utils import are_permissions_roles_seeded from django_comment_common.utils import are_permissions_roles_seeded
from xmodule.exceptions import InvalidVersionError from xmodule.exceptions import InvalidVersionError
import xmodule.contentstore.django
import datetime import datetime
from pytz import UTC from pytz import UTC
from uuid import uuid4 from uuid import uuid4
...@@ -92,7 +93,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase): ...@@ -92,7 +93,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
def tearDown(self): def tearDown(self):
m = pymongo.MongoClient() m = pymongo.MongoClient()
m.drop_database(TEST_DATA_CONTENTSTORE['OPTIONS']['db']) m.drop_database(TEST_DATA_CONTENTSTORE['OPTIONS']['db'])
#contentstore().fs_files.drop() xmodule.contentstore.django._CONTENTSTORE.clear()
def check_components_on_page(self, component_types, expected_types): def check_components_on_page(self, component_types, expected_types):
""" """
...@@ -859,7 +860,7 @@ class ContentStoreTest(ModuleStoreTestCase): ...@@ -859,7 +860,7 @@ class ContentStoreTest(ModuleStoreTestCase):
def tearDown(self): def tearDown(self):
m = pymongo.MongoClient() m = pymongo.MongoClient()
m.drop_database(TEST_DATA_CONTENTSTORE['OPTIONS']['db']) m.drop_database(TEST_DATA_CONTENTSTORE['OPTIONS']['db'])
#contentstore().fs_files.drop() xmodule.contentstore.django._CONTENTSTORE.clear()
def test_create_course(self): def test_create_course(self):
"""Test new course creation - happy path""" """Test new course creation - happy path"""
......
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