Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 2, 2024
1 parent b337015 commit 7b8c29b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions oauthenticator/tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,13 @@ async def test_generic_claim_groups_key_nested_strings(
assert auth_model["admin"]


async def test_generic_auth_state_groups_key_callable(get_authenticator, generic_client):
async def test_generic_auth_state_groups_key_callable(
get_authenticator, generic_client
):
c = Config()
c.GenericOAuthenticator.auth_state_groups_key = lambda auth_state: auth_state["oauth_user"]["policies"]["roles"]
c.GenericOAuthenticator.auth_state_groups_key = lambda auth_state: auth_state[
"oauth_user"
]["policies"]["roles"]
c.GenericOAuthenticator.allowed_groups = ["super_user"]
authenticator = get_authenticator(config=c)

Expand Down

0 comments on commit 7b8c29b

Please sign in to comment.