forked from phoenix/litellm-mirror
(test) key_gen
This commit is contained in:
parent
6d6c268352
commit
0f1f3b1d9b
1 changed files with 4 additions and 1 deletions
|
@ -1254,7 +1254,10 @@ async def test_user_api_key_auth(prisma_client):
|
|||
pytest.fail(f"This should have failed!. IT's an invalid key")
|
||||
except ProxyException as exc:
|
||||
print(exc.message)
|
||||
assert exc.message == "Authentication Error, No API Key passed in. Passed in: "
|
||||
assert (
|
||||
exc.message
|
||||
== "Authentication Error, Malformed API Key passed in. Ensure Key has `Bearer ` prefix. Passed in: "
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue