From 8d99c172a1ba3f449395f5d417916eedc5a68efa Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 19 Jul 2026 16:14:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/tests/test_sandbox_paths_note.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/studio/backend/tests/test_sandbox_paths_note.py b/studio/backend/tests/test_sandbox_paths_note.py index f6f75395a7..e1e33ee62b 100644 --- a/studio/backend/tests/test_sandbox_paths_note.py +++ b/studio/backend/tests/test_sandbox_paths_note.py @@ -212,11 +212,17 @@ def test_sandbox_disabled_treats_permission_mode_full_as_unsandboxed(): from routes.inference import _sandbox_disabled # Explicit bypass -> unsandboxed. - assert _sandbox_disabled(SimpleNamespace(bypass_permissions=True, permission_mode="ask")) is True + assert ( + _sandbox_disabled(SimpleNamespace(bypass_permissions = True, permission_mode = "ask")) is True + ) # "full" even without bypass set on the object -> still unsandboxed (decoupled # from the model-layer fold, so the notes never overclaim a live restriction). - assert _sandbox_disabled(SimpleNamespace(bypass_permissions=False, permission_mode="full")) is True + assert ( + _sandbox_disabled(SimpleNamespace(bypass_permissions = False, permission_mode = "full")) is True + ) # A genuinely sandboxed request keeps the restrictive notes. - assert _sandbox_disabled(SimpleNamespace(bypass_permissions=False, permission_mode="ask")) is False + assert ( + _sandbox_disabled(SimpleNamespace(bypass_permissions = False, permission_mode = "ask")) is False + ) # Missing attributes must not raise (defensive getattr). assert _sandbox_disabled(SimpleNamespace()) is False