From 216d7fe3eaa1846f9d81d17abdd258edd49f634b Mon Sep 17 00:00:00 2001 From: Richard Nemeth Date: Sun, 4 Jan 2026 18:31:36 +0100 Subject: [PATCH] test: fixed the tests for older keycloak versions --- tests/test_keycloak_admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_keycloak_admin.py b/tests/test_keycloak_admin.py index fe0d46f..824ff80 100644 --- a/tests/test_keycloak_admin.py +++ b/tests/test_keycloak_admin.py @@ -2748,7 +2748,7 @@ def test_auth_flows(admin: KeycloakAdmin, realm: str) -> None: payload = admin.get_authentication_flow_executions(flow_alias="test-create")[0] payload["displayName"] = "test" res = admin.update_authentication_flow_executions(payload=payload, flow_alias="test-create") - assert res == {} + assert isinstance(res, dict) exec_id = admin.get_authentication_flow_executions(flow_alias="test-create")[0]["id"] res = admin.delete_authentication_flow_execution(execution_id=exec_id) @@ -6595,7 +6595,7 @@ async def test_a_auth_flows(admin: KeycloakAdmin, realm: str) -> None: payload=payload, flow_alias="test-create", ) - assert res == {} + assert isinstance(res, dict) exec_id = (await admin.a_get_authentication_flow_executions(flow_alias="test-create"))[0]["id"] res = await admin.a_delete_authentication_flow_execution(execution_id=exec_id)