[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.
This commit is contained in:
Yuneng Jiang 2026-05-01 14:24:53 -07:00
parent 2fca7ad3ef
commit 4825d94a9d
No known key found for this signature in database

View File

@ -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():