From 2d39fac7abf100cf5c8ec9fcceed5ec00cb65deb Mon Sep 17 00:00:00 2001 From: Hadeer-Elsaeed Date: Thu, 29 Dec 2022 00:13:17 +0200 Subject: [PATCH] fix: linting --- tests/test_keycloak_admin.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/tests/test_keycloak_admin.py b/tests/test_keycloak_admin.py index cac47de..1420c56 100644 --- a/tests/test_keycloak_admin.py +++ b/tests/test_keycloak_admin.py @@ -1564,26 +1564,6 @@ def test_enable_token_exchange(admin: KeycloakAdmin, realm: str): scope_id=token_exchange_permission_id, ) - # Create permissions on the target client to reference this policy - res = admin.create_client_authz_scope_permission( - payload={ - "name": "test-permission", - "type": "scope", - "logic": "POSITIVE", - "decisionStrategy": "UNANIMOUS", - "resources": [token_exchange_resource_id], - "scopes": [token_exchange_scope_id], - "policies": [client_policy_id], - }, - client_id="realm_management_id", - ) - 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"] - assert permission_name == "test-permission" - def test_email(admin: KeycloakAdmin, user: str): """Test email.