fix: report workspace status success

This commit is contained in:
wuyang
2026-07-26 15:10:56 +08:00
parent e5207a3dda
commit be7abbd18f
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -98,6 +98,10 @@ def test_gateway_requires_service_key_and_signed_identity(settings, identity_jwt
response = client.post("/v1/tools/list_files", headers=headers, json={"path": "src"})
assert response.status_code == 200
assert response.json()["output"] == "user-123:src"
status = client.post("/v1/tools/workspace_status", headers=headers, json={})
assert status.status_code == 200
assert status.json()["ok"] is True
assert status.json()["state"] == "running"
listing = client.get("/v1/files", headers=headers, params={"path": "."})
assert listing.status_code == 200
assert listing.json()["entries"][0]["name"] == "报告.md"