Refactor: reformat all code for lefthook using ruff and gofmt (#16585)

This commit is contained in:
Wang Qi
2026-07-03 12:53:39 +08:00
committed by GitHub
parent 19fcb4a981
commit 6a4b9be426
588 changed files with 11123 additions and 15412 deletions
+1 -2
View File
@@ -142,8 +142,7 @@ def test_agents_crud_validation_contract(rest_client, create_agent_resource):
# code=103 = permission denied (Python: "Only the owner of the agent..."; Go: "Make sure you have permission...")
assert invalid_delete_payload["code"] == 103, invalid_delete_payload
msg = invalid_delete_payload["message"]
assert ("Only the owner of the agent is authorized" in msg
or "Make sure you have permission" in msg), invalid_delete_payload
assert "Only the owner of the agent is authorized" in msg or "Make sure you have permission" in msg, invalid_delete_payload
delete_res = rest_client.delete(f"/agents/{agent_id}")
assert delete_res.status_code == 200