Browse Source

fix: test expecting and different anwser from server

Signed-off-by: Cainã S. G <p-caina.galante@pd.tec.br>
pull/462/head
Cainã S. G 12 months ago
parent
commit
7fad55dc4f
  1. 2
      tests/test_keycloak_admin.py

2
tests/test_keycloak_admin.py

@ -866,7 +866,7 @@ def test_clients(admin: KeycloakAdmin, realm: str):
resource_id="invalid_resource_id",
payload={"name": "temp-updated-resource"},
)
assert err.match('404: b\'{"error":"HTTP 404 Not Found"}\''), err
assert err.match("404: b''"), err
admin.delete_client_authz_resource(client_id=auth_client_id, resource_id=temp_resource_id)
with pytest.raises(KeycloakGetError) as err:
admin.get_client_authz_resource(client_id=auth_client_id, resource_id=temp_resource_id)

Loading…
Cancel
Save