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()
def db_cleanup(): yield RawFile.drop_collection() Request.drop_collection()
def drop(self, mongo_conn): Request.drop_collection()
def clear_requests(app): Request.drop_collection()