Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo 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)