Fixed django test class

refs hmarr/mongoengine#506
This commit is contained in:
Ross Lawley 2012-06-18 21:18:40 +01:00
parent c73ce3d220
commit 89220c142b

View File

@ -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):