Skip to content

Commit 216d7fe

Browse files
committed
test: fixed the tests for older keycloak versions
1 parent f1d4376 commit 216d7fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_keycloak_admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,7 +2748,7 @@ def test_auth_flows(admin: KeycloakAdmin, realm: str) -> None:
27482748
payload = admin.get_authentication_flow_executions(flow_alias="test-create")[0]
27492749
payload["displayName"] = "test"
27502750
res = admin.update_authentication_flow_executions(payload=payload, flow_alias="test-create")
2751-
assert res == {}
2751+
assert isinstance(res, dict)
27522752

27532753
exec_id = admin.get_authentication_flow_executions(flow_alias="test-create")[0]["id"]
27542754
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:
65956595
payload=payload,
65966596
flow_alias="test-create",
65976597
)
6598-
assert res == {}
6598+
assert isinstance(res, dict)
65996599

66006600
exec_id = (await admin.a_get_authentication_flow_executions(flow_alias="test-create"))[0]["id"]
66016601
res = await admin.a_delete_authentication_flow_execution(execution_id=exec_id)

0 commit comments

Comments
 (0)