Exemplo n.º 1
0
 def _pre_setup(self):
     super(MongoTestCase, self)._pre_setup()
     db_name = 'test_%s' % settings.MONGODB_DATABASES.get(
             DEFAULT_CONNECTION_NAME).get('name')
     self.conn = connect(db_name)
Exemplo n.º 2
0
 def __init__(self, methodName='runtest'):
     db_name = 'test_%s' % settings.MONGODB_DATABASES.get(
         DEFAULT_CONNECTION_NAME).get('name')
     self.conn = connect(db_name)
     super(MongoTestCase, self).__init__(methodName)
Exemplo n.º 3
0
 def __init__(self, methodName='runtest'):
     db_name = 'test_%s' % settings.MONGODB_DATABASES.get(
             DEFAULT_CONNECTION_NAME).get('name')
     self.conn = connect(db_name)
     super(MongoTestCase, self).__init__(methodName)
Exemplo n.º 4
0
 def _pre_setup(self):
     super(MongoTestCase, self)._pre_setup()
     db_name = 'test_%s' % settings.MONGODB_DATABASES.get(
         DEFAULT_CONNECTION_NAME).get('name')
     self.conn = connect(db_name)