litellm/tests/e2e/llm_translation/conftest.py
yassin db0df1a341 test(e2e): rename Gateway->ProxyClient, expose as pytest fixture; drop unused grafana docs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-17 16:44:55 +00:00

29 lines
938 B
Python

"""LLM-translation suite's `client` fixture.
The shared lifecycle (resources/scoped_key), proxy liveness skip, and e2e marker
live in the parent tests/e2e/conftest.py. PassthroughClient holds the shared
ProxyClient, so the `resources` fixture cleans up keys this suite creates.
"""
import pytest
from endpoints_client import EndpointsClient, build_endpoints_client
from passthrough_client import PassthroughClient, build_client
from proxy_client import ProxyClient
def pytest_configure(config: pytest.Config) -> None:
config.addinivalue_line(
"markers",
"covers: registry cell a test covers, e.g. llm.chat_completions.provider.basic.nonstream.works",
)
@pytest.fixture(scope="session")
def client(proxy: ProxyClient) -> PassthroughClient:
return build_client(proxy)
@pytest.fixture(scope="session")
def endpoints_client(proxy: ProxyClient) -> EndpointsClient:
return build_endpoints_client(proxy)