Browse Source

test: fixed the tests for older keycloak versions

pull/687/head
Richard Nemeth 1 week ago
parent
commit
216d7fe3ea
No known key found for this signature in database GPG Key ID: 21C39470DF3DEC39
  1. 4
      tests/test_keycloak_admin.py

4
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)

Loading…
Cancel
Save