mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
test(proxy): type the fake tag batch helper parameters
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
cc312c30af
commit
1edc656258
1 changed files with 6 additions and 1 deletions
|
|
@ -5097,8 +5097,13 @@ async def test_resolve_tag_rate_limits_from_db_reads_budget_row(monkeypatch):
|
|||
from litellm.proxy import proxy_server
|
||||
from litellm.proxy.auth import auth_checks
|
||||
from litellm.proxy.hooks.parallel_request_limiter_v3 import resolve_tag_rate_limits_from_db
|
||||
from litellm.proxy.utils import PrismaClient
|
||||
|
||||
async def fake_batch(tag_names, prisma_client, user_api_key_cache, **kwargs):
|
||||
async def fake_batch(
|
||||
tag_names: Sequence[str],
|
||||
prisma_client: PrismaClient | None,
|
||||
user_api_key_cache: DualCache,
|
||||
) -> dict[str, LiteLLM_TagTable]:
|
||||
return {
|
||||
"limited": LiteLLM_TagTable(
|
||||
tag_name="limited",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue