forked from phoenix/litellm-mirror
(test) setting team_id
This commit is contained in:
parent
f405a827e3
commit
5beef6dbcd
1 changed files with 3 additions and 1 deletions
|
@ -543,7 +543,8 @@ def test_generate_and_update_key(prisma_client):
|
||||||
async def test():
|
async def test():
|
||||||
await litellm.proxy.proxy_server.prisma_client.connect()
|
await litellm.proxy.proxy_server.prisma_client.connect()
|
||||||
request = NewUserRequest(
|
request = NewUserRequest(
|
||||||
metadata={"team": "litellm-team3", "project": "litellm-project3"}
|
metadata={"team": "litellm-team3", "project": "litellm-project3"},
|
||||||
|
team_id="litellm-core-infra@gmail.com",
|
||||||
)
|
)
|
||||||
key = await new_user(request)
|
key = await new_user(request)
|
||||||
print(key)
|
print(key)
|
||||||
|
@ -560,6 +561,7 @@ def test_generate_and_update_key(prisma_client):
|
||||||
"team": "litellm-team3",
|
"team": "litellm-team3",
|
||||||
"project": "litellm-project3",
|
"project": "litellm-project3",
|
||||||
}
|
}
|
||||||
|
assert result["info"].team_id == "litellm-core-infra@gmail.com"
|
||||||
|
|
||||||
request = Request(scope={"type": "http"})
|
request = Request(scope={"type": "http"})
|
||||||
request._url = URL(url="/update/key")
|
request._url = URL(url="/update/key")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue