From 13facfdf2af2f5914f8125551ebadc822db8b8dc Mon Sep 17 00:00:00 2001 From: Hadeer-Elsaeed Date: Mon, 2 Jan 2023 17:37:29 +0200 Subject: [PATCH] feat(api): apply formating --- tests/test_keycloak_admin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_keycloak_admin.py b/tests/test_keycloak_admin.py index 64365c3..0db7d3e 100644 --- a/tests/test_keycloak_admin.py +++ b/tests/test_keycloak_admin.py @@ -1565,7 +1565,7 @@ def test_enable_token_exchange(admin: KeycloakAdmin, realm: str): ) # Create permissions on the target client to reference this policy - res = admin.create_client_authz_scope_permission( + admin.create_client_authz_scope_permission( payload={ "name": "test-permission", "type": "scope", @@ -1580,10 +1580,12 @@ def test_enable_token_exchange(admin: KeycloakAdmin, realm: str): with pytest.raises(KeycloakPostError) as err: admin.create_client_scope(payload={"name": "test-scope"}) assert err.match('404: b\'{"errorMessage":"Could not find client"}\'') - permission_name = admin.get_client_authz_scope_permission( - client_id=realm_management_id)["name"] + permission_name = admin.get_client_authz_scope_permission(client_id=realm_management_id)[ + "name" + ] assert permission_name == "test-permission" + def test_email(admin: KeycloakAdmin, user: str): """Test email.