Browse Source

test: fix match

pull/550/head
Richard Nemeth 9 months ago
parent
commit
af3d596166
No known key found for this signature in database GPG Key ID: 21C39470DF3DEC39
  1. 2
      tests/test_keycloak_admin.py

2
tests/test_keycloak_admin.py

@ -413,7 +413,7 @@ def test_users_roles(admin: KeycloakAdmin, realm: str):
# Test all level user roles fail # Test all level user roles fail
with pytest.raises(KeycloakGetError) as err: with pytest.raises(KeycloakGetError) as err:
admin.get_all_roles_of_user(user_id="non-existent-id") admin.get_all_roles_of_user(user_id="non-existent-id")
err.match('404: b\'{"error":"User not found"}\'')
err.match('404: b\'{"error":"User not found"')
admin.delete_user(user_id) admin.delete_user(user_id)
admin.delete_client(client_id) admin.delete_client(client_id)

Loading…
Cancel
Save