From 4825d94a9dd09e36bdda16f2bc9490fba8e07fbb Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Fri, 1 May 2026 14:24:53 -0700 Subject: [PATCH] [Fix] Tests: Move Misplaced Import in Lazy OpenAPI Snapshot Test The GitHub merge conflict resolver concatenated both test sets but left `from litellm.proxy._lazy_openapi_snapshot import _normalize_operation_ids` stranded between functions instead of at the top of the file. --- tests/test_litellm/proxy/test_lazy_openapi_snapshot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/proxy/test_lazy_openapi_snapshot.py b/tests/test_litellm/proxy/test_lazy_openapi_snapshot.py index 4fa6cb8512..64cb931888 100644 --- a/tests/test_litellm/proxy/test_lazy_openapi_snapshot.py +++ b/tests/test_litellm/proxy/test_lazy_openapi_snapshot.py @@ -1,6 +1,8 @@ import sys from types import ModuleType, SimpleNamespace +from litellm.proxy._lazy_openapi_snapshot import _normalize_operation_ids + def test_generate_snapshot_uses_shared_operation_id_reservations(monkeypatch): from litellm.proxy import _lazy_openapi_snapshot @@ -80,7 +82,6 @@ def test_generate_snapshot_uses_shared_operation_id_reservations(monkeypatch): assert fragments["feature-b"]["paths"]["/feature-b/items"]["get"]["tags"] == [ "feature-b" ] -from litellm.proxy._lazy_openapi_snapshot import _normalize_operation_ids def test_normalize_operation_ids_uses_each_http_method():