mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test_user_api_key_auth
This commit is contained in:
parent
c4088841d9
commit
50466e0077
1 changed files with 1 additions and 4 deletions
|
|
@ -2358,10 +2358,7 @@ 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, Malformed API Key passed in. Ensure Key has `Bearer ` prefix. Passed in: "
|
||||
)
|
||||
assert "Authentication Error, Malformed API Key passed in. Ensure Key has `Bearer ` prefix. Passed in:" in exc.message
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue