litellm/tests/integration/configuration/test_openapi_docs_gate.py
Yuneng Jiang 71d19f41de
ci(integration): hand the uv cache to the test process
The lane exports UV_OFFLINE for itself and then starts pytest through
env -i, which drops both that flag and the UV_CACHE_DIR the uv setup
action points at its restored cache. The docs gate test builds the base
tree with uv, so it looked in an empty default cache and then tried
PyPI, which the lane blocks.

Pass both variables to the test process, the way rc/1.109.0 already
does, and drop the UV_OFFLINE line from the test that could not help
without the cache.
2026-11-09 22:47:43 -08:00

9 lines
307 B
Python

from typing import Final
import openapi_docs_gate as gate
def test_base_counts_imports_native_extension_from_detached_worktree() -> None:
expected_counts: Final = dict(gate.count_by_rule(gate.head_violations()))
assert expected_counts
assert dict(gate.base_counts("HEAD")) == expected_counts