From cf0da03a068889d694d671983dd199e674310afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cain=C3=A3=20S=2E=20G?= Date: Mon, 26 Jun 2023 17:49:38 -0300 Subject: [PATCH] fix: test expecting and different anwser from server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: CainĂ£ S. G --- tests/test_keycloak_admin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_keycloak_admin.py b/tests/test_keycloak_admin.py index 717c509..8fc8bba 100644 --- a/tests/test_keycloak_admin.py +++ b/tests/test_keycloak_admin.py @@ -851,13 +851,14 @@ def test_clients(admin: KeycloakAdmin, realm: str): client_id=auth_client_id, payload={"name": "temp-resource"} ) assert res["name"] == "temp-resource", res - temp_resource_id = res["_id"] + temp_resource_id: str = res["_id"] # Test update authz resources - res = admin.update_client_authz_resource( + admin.update_client_authz_resource( client_id=auth_client_id, resource_id=temp_resource_id, payload={"name": "temp-updated-resource"}, ) + res = admin.get_client_authz_resource(client_id=auth_client_id, resource_id=temp_resource_id) assert res["name"] == "temp-updated-resource", res with pytest.raises(KeycloakPutError) as err: admin.update_client_authz_resource(