mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
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.
9 lines
307 B
Python
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
|