mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
The prompt-cache affinity test needs the prompt_caching pre-call check on the proxy, which the CI stack does not carry until project-releaser #223 lands, so it now sits behind a prompt_caching_stack marker that is deselected unless E2E_PROMPT_CACHING_STACK is set, the same shape as managed_files. The per-directory deselection hooks for weekly and managed_files move into the parent conftest as one OPT_IN_MARKERS table, so the collector counts a gated cell only where its env var is set (31/36 today, 32/36 with #223). The simple-shuffle cell asked for three picks, which a shuffle ignoring the weights passes one time in eight; it now asks for ten.
11 lines
249 B
Python
11 lines
249 B
Python
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from load_client import LoadClient, build_client
|
|
from proxy_client import ProxyClient
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def client(proxy: ProxyClient) -> LoadClient:
|
|
return build_client(proxy)
|