Skip to content

Commit 01e7694

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

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
@@ -3951,11 +3951,7 @@ async def test_a_groups(admin: KeycloakAdmin, user: str):
39513951
assert res["id"] == subgroup_id_1, res
39523952

39533953
res = await admin.a_get_group_by_path(path="/main-group/subgroup-2/subsubgroup-1/test")
3954-
assert res == {
3955-
"error": "Group path does not exist",
3956-
"error_description": "For more on this error consult the server log at the "
3957-
"debug level.",
3958-
}, res
3954+
assert res["error"] == "Group path does not exist"
39593955

39603956
res = await admin.a_get_group_by_path(path="/main-group/subgroup-2/subsubgroup-1")
39613957
assert res is not None, res

0 commit comments

Comments
 (0)