|
@ -897,7 +897,7 @@ def test_clients(admin: KeycloakAdmin, realm: str): |
|
|
|
|
|
|
|
|
with pytest.raises(KeycloakPostError) as err: |
|
|
with pytest.raises(KeycloakPostError) as err: |
|
|
admin.create_client_authz_scopes( |
|
|
admin.create_client_authz_scopes( |
|
|
client_id='invalid_client_id', payload={"name": "test-authz-scope"} |
|
|
|
|
|
|
|
|
client_id="invalid_client_id", payload={"name": "test-authz-scope"} |
|
|
) |
|
|
) |
|
|
assert err.match('404: b\'{"error":"Could not find client"') |
|
|
assert err.match('404: b\'{"error":"Could not find client"') |
|
|
assert admin.create_client_authz_scopes( |
|
|
assert admin.create_client_authz_scopes( |
|
|