@pytest.fixture
def user_admin_perm_to_auditors(session, groups):
    user_admin_perm, is_new = Permission.get_or_create(session, name=USER_ADMIN, description="")
    session.commit()

    grant_permission(groups["auditors"], user_admin_perm)
Adds a USER_ADMIN permission to the "auditors" group
dataset/ETHPy150Open dropbox/grouper/tests/test_users.py/user_admin_perm_to_auditors