From a1e203f0a8aaeb39929842234aa291ea23920d3a Mon Sep 17 00:00:00 2001 From: yucheng Date: Thu, 10 Sep 2026 06:44:40 +0000 Subject: [PATCH] style(agent_365): sort test imports Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../guardrails/guardrail_hooks/test_agent_365.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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.py index 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 time from types import SimpleNamespace from typing import Any, Final import httpx -import time - import pytest from fastapi import HTTPException @@ -595,7 +594,9 @@ class TestMalformedResponses: @pytest.mark.asyncio async 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.asyncio async 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())