Skip to content

Commit 3548e1e

Browse files
committed
test: simplify assertion for non-existent group path error
1 parent 01e7694 commit 3548e1e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/test_keycloak_admin.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -846,11 +846,7 @@ def test_groups(admin: KeycloakAdmin, user: str):
846846
assert res["id"] == subgroup_id_1, res
847847

848848
res = admin.get_group_by_path(path="/main-group/subgroup-2/subsubgroup-1/test")
849-
assert res == {
850-
"error": "Group path does not exist",
851-
"error_description": "For more on this error consult the server log at the "
852-
"debug level.",
853-
}, res
849+
assert res["error"] == "Group path does not exist"
854850

855851
res = admin.get_group_by_path(path="/main-group/subgroup-2/subsubgroup-1")
856852
assert res is not None, res

0 commit comments

Comments
 (0)