forked from phoenix/litellm-mirror
test(test_key_management.py): fix test
This commit is contained in:
parent
829199d538
commit
643e5b755c
1 changed files with 6 additions and 4 deletions
|
@ -653,16 +653,18 @@ def test_personal_key_generation_check():
|
|||
}
|
||||
|
||||
assert _personal_key_generation_check(
|
||||
UserAPIKeyAuth(
|
||||
user_api_key_dict=UserAPIKeyAuth(
|
||||
user_role=LitellmUserRoles.PROXY_ADMIN, api_key="sk-1234", user_id="admin"
|
||||
)
|
||||
),
|
||||
data=GenerateKeyRequest(),
|
||||
)
|
||||
|
||||
with pytest.raises(HTTPException):
|
||||
_personal_key_generation_check(
|
||||
UserAPIKeyAuth(
|
||||
user_api_key_dict=UserAPIKeyAuth(
|
||||
user_role=LitellmUserRoles.INTERNAL_USER,
|
||||
api_key="sk-1234",
|
||||
user_id="admin",
|
||||
)
|
||||
),
|
||||
data=GenerateKeyRequest(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue