def wrapper(*args, **kwargs): time.sleep(5) # wait for opertaor instance start new_application(app_name=name, fields=fields, s3_buckets=s3_buckets) func(*args, **kwargs) delete_application(name)
def delete(self, data): delete_application(data['name'])
def delete_application_api(name): return delete_application(name)
def wrapper(*args, **kwargs): new_application(app_name=name, fields=fields, s3_bucket=s3_buckets) func(*args, **kwargs) delete_application(name, True)