mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-30 01:52:18 +00:00
12 lines
318 B
Python
12 lines
318 B
Python
"""Session-scoped Prisma client for spend-rollup behavior tests against a real Postgres."""
|
|
|
|
import pytest_asyncio
|
|
from prisma import Prisma
|
|
|
|
|
|
@pytest_asyncio.fixture(scope="session", loop_scope="session")
|
|
async def db():
|
|
client = Prisma()
|
|
await client.connect()
|
|
yield client
|
|
await client.disconnect()
|