| @@ -10,7 +10,7 @@ class MongoTestCase(TestCase): | |||||||
|     """ |     """ | ||||||
|     db_name = 'test_%s' % settings.MONGO_DATABASE_NAME |     db_name = 'test_%s' % settings.MONGO_DATABASE_NAME | ||||||
|     def __init__(self, methodName='runtest'): |     def __init__(self, methodName='runtest'): | ||||||
|         self.db = connect(self.db_name) |         self.db = connect(self.db_name).get_db() | ||||||
|         super(MongoTestCase, self).__init__(methodName) |         super(MongoTestCase, self).__init__(methodName) | ||||||
|  |  | ||||||
|     def _post_teardown(self): |     def _post_teardown(self): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user