The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(ui): hoist inherited-grant fixture out of the inline createMockTeamData arg
ryan4d2ffe2e8e8d
diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsxindex ae78ac06a9c..a9c1077e96b 100644--- a/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx+++ b/ui/litellm-dashboard/src/components/team/TeamInfo.test.tsx@@ -313,23 +313,21 @@ describe("TeamInfoView", () => {vi.mocked(networking.getAgentsList).mockResolvedValue({agents: [{ agent_id: "agent-support-5678", agent_name: "support_agent" }],});- vi.mocked(networking.teamInfoCall).mockResolvedValue(- createMockTeamData({- object_permission: null,- access_group_ids: ["ag-1"],- access_group_mcp_server_ids: ["mcp-github-1234"],- access_group_agent_ids: ["agent-support-5678"],- access_group_details: [- {- access_group_id: "ag-1",- access_group_name: "platform-tools",- models: [],- mcp_server_ids: ["mcp-github-1234"],- agent_ids: ["agent-support-5678"],- },- ],- }),- );+ const platformToolsGroup = {+ access_group_id: "ag-1",+ access_group_name: "platform-tools",+ models: [],+ mcp_server_ids: ["mcp-github-1234"],+ agent_ids: ["agent-support-5678"],+ };+ const inheritedGrants = {+ object_permission: null,+ access_group_ids: ["ag-1"],+ access_group_mcp_server_ids: ["mcp-github-1234"],+ access_group_agent_ids: ["agent-support-5678"],+ access_group_details: [platformToolsGroup],+ };+ vi.mocked(networking.teamInfoCall).mockResolvedValue(createMockTeamData(inheritedGrants));renderWithProviders(<TeamInfoView {...defaultProps} />);