mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
test_generate_key_with_object_permission
This commit is contained in:
parent
4d79280175
commit
3aa0f6ed72
1 changed files with 4 additions and 4 deletions
|
|
@ -1874,15 +1874,15 @@ async def test_generate_key_with_object_permission():
|
|||
|
||||
# Patch the prisma_client and other dependencies
|
||||
with patch(
|
||||
"litellm.proxy.management_endpoints.key_management_endpoints.prisma_client",
|
||||
"litellm.proxy.proxy_server.prisma_client",
|
||||
mock_prisma_client,
|
||||
), patch(
|
||||
"litellm.proxy.management_endpoints.key_management_endpoints.llm_router", None
|
||||
"litellm.proxy.proxy_server.llm_router", None
|
||||
), patch(
|
||||
"litellm.proxy.management_endpoints.key_management_endpoints.premium_user",
|
||||
"litellm.proxy.proxy_server.premium_user",
|
||||
False,
|
||||
), patch(
|
||||
"litellm.proxy.management_endpoints.key_management_endpoints.litellm_proxy_admin_name",
|
||||
"litellm.proxy.proxy_server.litellm_proxy_admin_name",
|
||||
"admin",
|
||||
):
|
||||
# Execute
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue