Skip to content

Commit

Permalink
test: simplify assertion for non-existent group path error
Browse files Browse the repository at this point in the history
  • Loading branch information
ryshoooo committed Dec 14, 2024
1 parent 01e7694 commit 3548e1e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_keycloak_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,11 +846,7 @@ def test_groups(admin: KeycloakAdmin, user: str):
assert res["id"] == subgroup_id_1, res

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

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

0 comments on commit 3548e1e

Please sign in to comment.