mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
test(organization): type the legacy update helper's request body precisely
This commit is contained in:
parent
fb4cbccbf5
commit
4f3b02360e
1 changed files with 3 additions and 1 deletions
|
|
@ -963,7 +963,9 @@ async def test_v2_serializes_model_max_budget_on_budget_write(monkeypatch):
|
|||
assert json.loads(written) == {"gpt-4o": {"max_budget": 10}}
|
||||
|
||||
|
||||
async def _run_legacy_update_organization(monkeypatch, *, body: dict, existing_budget_id: str):
|
||||
async def _run_legacy_update_organization(
|
||||
monkeypatch: pytest.MonkeyPatch, *, body: dict[str, object], existing_budget_id: str
|
||||
) -> AsyncMock:
|
||||
from litellm.proxy._types import LitellmUserRoles, UserAPIKeyAuth
|
||||
from litellm.proxy.management_endpoints import organization_endpoints
|
||||
from litellm.proxy.management_endpoints.organization_endpoints import update_organization
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue