Format four files ruff had drifted from

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H7LwYgJfpkbLCTeiAf8U4A
This commit is contained in:
2026-08-16 16:47:16 +02:00
co-authored by Claude Fable 5
parent 2613fbead4
commit b5949938f0
4 changed files with 27 additions and 13 deletions
+6 -3
View File
@@ -118,9 +118,12 @@ def test_editing_does_not_deploy_until_published(
).json()
assert saved["has_draft"] is True
# Nothing is running yet, so the engine knows no nodes of this flow.
assert client.get(f"{PREFIX}/staged/state", headers=superuser_token_headers).json()[
"nodes"
] == []
assert (
client.get(f"{PREFIX}/staged/state", headers=superuser_token_headers).json()[
"nodes"
]
== []
)
published = client.post(
f"{PREFIX}/staged/publish",
+13 -6
View File
@@ -103,7 +103,9 @@ def test_a_wrong_verifier_is_refused(
_, challenge = pkce()
code = approve(client, superuser_token_headers, registered["client_id"], challenge)
response = exchange(client, registered["client_id"], code, secrets.token_urlsafe(48))
response = exchange(
client, registered["client_id"], code, secrets.token_urlsafe(48)
)
assert response.status_code == 400
assert response.json()["error"] == "invalid_grant"
@@ -207,9 +209,7 @@ def test_approving_needs_a_signed_in_user(client: TestClient) -> None:
def test_an_unsupported_grant_says_so(client: TestClient) -> None:
response = client.post(
f"{PREFIX}/token", data={"grant_type": "client_credentials"}
)
response = client.post(f"{PREFIX}/token", data={"grant_type": "client_credentials"})
assert response.status_code == 400
assert response.json()["error"] == "unsupported_grant_type"
@@ -219,9 +219,16 @@ def test_everything_is_refused_while_mcp_is_off(
) -> None:
monkeypatch.setattr(settings, "MCP_ENABLED", False)
assert client.post(f"{PREFIX}/register", json={"redirect_uris": [REDIRECT]}).status_code == 403
assert (
client.post(f"{PREFIX}/token", data={"grant_type": "authorization_code"}).status_code
client.post(
f"{PREFIX}/register", json={"redirect_uris": [REDIRECT]}
).status_code
== 403
)
assert (
client.post(
f"{PREFIX}/token", data={"grant_type": "authorization_code"}
).status_code
== 403
)