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
style(agent_365): sort test imports
yuchenga1e203f0a8aa
diff --git a/tests/test_litellm/proxy/guardrails/guardrail_hooks/test_agent_365.py b/tests/test_litellm/proxy/guardrails/guardrail_hooks/test_agent_365.pyindex 152674aab7f..e9cdf9318a6 100644--- a/tests/test_litellm/proxy/guardrails/guardrail_hooks/test_agent_365.py+++ b/tests/test_litellm/proxy/guardrails/guardrail_hooks/test_agent_365.py@@ -1,9 +1,8 @@+import timefrom types import SimpleNamespacefrom typing import Any, Finalimport httpx-import time-import pytestfrom fastapi import HTTPException@@ -595,7 +594,9 @@ class TestMalformedResponses:@pytest.mark.asyncioasync def test_bad_expires_in_still_allows(self):- handler: Final = FakeHandler([_response(200, {"access_token": "tok-1", "expires_in": "soon"}), _allow_response()])+ handler: Final = FakeHandler(+ [_response(200, {"access_token": "tok-1", "expires_in": "soon"}), _allow_response()]+ )guardrail: Final = _make_guardrail(handler)data: Final = _mcp_data()result: Final = await _run(guardrail, data)@@ -625,7 +626,9 @@ class TestDeltaHardening:@pytest.mark.asyncioasync def test_numeric_string_expires_in_honored(self):- handler: Final = FakeHandler([_response(200, {"access_token": "tok-9", "expires_in": "120"}), _allow_response()])+ handler: Final = FakeHandler(+ [_response(200, {"access_token": "tok-9", "expires_in": "120"}), _allow_response()]+ )guardrail: Final = _make_guardrail(handler)await _run(guardrail, _mcp_data())entries: Final = list(guardrail._obo_token_cache.values())