Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/proxy_behavior/management/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _write_minimal_proxy_config() -> str:
return f.name


@pytest_asyncio.fixture(scope="session")
@pytest_asyncio.fixture(scope="package")
async def proxy_app():
from litellm.proxy import proxy_server
from litellm.proxy.proxy_server import (
Expand Down Expand Up @@ -67,7 +67,7 @@ async def proxy_app():
yield app


@pytest_asyncio.fixture(scope="session")
@pytest_asyncio.fixture(scope="package")
async def proxy_client(proxy_app) -> AsyncIterator[httpx.AsyncClient]:
transport = httpx.ASGITransport(app=proxy_app)
async with httpx.AsyncClient(
Expand All @@ -76,15 +76,15 @@ async def proxy_client(proxy_app) -> AsyncIterator[httpx.AsyncClient]:
yield client


@pytest_asyncio.fixture(scope="session")
@pytest_asyncio.fixture(scope="package")
async def prisma(proxy_app):
from litellm.proxy import proxy_server

assert proxy_server.prisma_client is not None
return proxy_server.prisma_client


@pytest_asyncio.fixture(scope="session")
@pytest_asyncio.fixture(scope="package")
async def world(prisma):
from .actors import seed_world

Expand Down
Loading