Exemplo n.º 1
0
def ensure_maintenance_collection():
    if not database:
        return None
    try:
        database.create_collection('maintenance')
    except CollectionInvalid:
        pass
Exemplo n.º 2
0
 def setUpClass(cls):
     super(TestTransactionContext, cls).setUpClass()
     try:
         database.create_collection('transaction')
     except CollectionInvalid:
         pass
     cls.collection = database[TEST_COLLECTION_NAME]
Exemplo n.º 3
0
 def setUpClass(cls):
     super(TestTransactionContext, cls).setUpClass()
     try:
         database.create_collection('transaction')
     except CollectionInvalid:
         pass
     cls.collection = database[TEST_COLLECTION_NAME]
Exemplo n.º 4
0
def ensure_maintenance_collection():
    try:
        database.create_collection('maintenance')
    except CollectionInvalid:
        pass