test: check the reason for the unsandboxed mode-only refusal

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-10-23 06:01:43 -07:00
co-authored by Claude Opus 5.5
parent 881c81b676
commit 3d549593e4
+1
View File
@@ -266,6 +266,7 @@ async fn test_access_mode_only_update(db: Pool<Postgres>) -> anyhow::Result<()>
)
.await?;
assert_eq!(status, 403, "{body}");
assert!(body.contains("is not sandboxed"), "{body}");
let p = policy(&db, BUILT).await?;
assert!(p.get("sandbox").is_none(), "{p}");
assert_eq!(p["execution_mode"], "anonymous");