예제 #1
0
def data_cleanup():
    """Cleanup all data between test modules to ensure each one is independent"""
    yield
    Event.drop_collection()
    File.drop_collection()
    Garden.drop_collection()
    Job.drop_collection()
    RawFile.drop_collection()
    Request.drop_collection()
    RemoteUser.drop_collection()
    Role.drop_collection()
    System.drop_collection()
    User.drop_collection()
    UserToken.drop_collection()
예제 #2
0
 def roles(self):
     ensure_roles()
     yield
     Role.drop_collection()
예제 #3
0
def drop():
    Garden.drop_collection()
    Role.drop_collection()
    System.drop_collection()
    User.drop_collection()
예제 #4
0
 def drop(self, mongo_conn):
     Role.drop_collection()
예제 #5
0
def drop_roles(app):
    Role.drop_collection()
예제 #6
0
def drop_principals(app):
    Principal.drop_collection()
    Role.drop_collection()
예제 #7
0
def drop():
    Role.drop_collection()