litellm/tests/unit/proxy/_prisma.py
ishaan-j-berri 85f89d79b7
revert(proxy): remove per AI tool limits for teams and members (#55670)
* Revert "feat(proxy): add per AI tool limits for teams and members (#55520)"

This reverts commit b5bdbff85f.

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

# Conflicts:
#	litellm/ui/litellm-dashboard/src/app/(dashboard)/usage/_components/usageUrlState.ts

* fix(proxy): preserve migration history and safe lockfile in AI budgets revert

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* fix(otel): keep span names for retained AI tool budget tables

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
2026-12-03 04:28:08 +00:00

10 lines
348 B
Python

"""Prisma test doubles with an empty gateway configuration table."""
from typing import Final
from unittest.mock import AsyncMock, MagicMock
def prisma_with_empty_config() -> MagicMock:
database: Final = MagicMock()
database.litellm_config.find_unique = AsyncMock(return_value=None)
return MagicMock(db=database, writer_db=database)