def test_delete_project(db_session, awg_users): project = db_session.query(Project).filter_by( name="test_project_1").first() assert project.name == "test_project_1" adm.delete_project(db_session, "test_project_1") project = db_session.query(Project).filter_by( name="test_project_1").first() assert project == None
def delete_project(projectname): """ Remove project. No Buckets should be associated with it. Returns a json object. """ response = jsonify(admin.delete_project(current_session, projectname)) return response