Commit 8bbaf006 by Don Mitchell

Separate doc_store_config

parent 4e455fd8
......@@ -28,20 +28,21 @@ class TestOrphan(unittest.TestCase):
'fs_root': '',
'render_template': mock.Mock(return_value=""),
'xblock_mixins': (InheritanceMixin,)
}, **db_config)
})
split_course_id = 'test_org.test_course.runid'
def setUp(self):
self.modulestore_options['collection'] = 'modulestore{0}'.format(uuid.uuid4().hex)
self.db_config['collection'] = 'modulestore{0}'.format(uuid.uuid4().hex)
self.userid = random.getrandbits(32)
super(TestOrphan, self).setUp()
self.split_mongo = SplitMongoModuleStore(
self.db_config,
**self.modulestore_options
)
self.addCleanup(self.tearDownSplit)
self.old_mongo = MongoModuleStore(**self.modulestore_options)
self.old_mongo = MongoModuleStore(self.db_config, **self.modulestore_options)
self.addCleanup(self.tearDownMongo)
self.course_location = None
self._create_course()
......
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