(test) key_gen

This commit is contained in:
ishaan-jaff 2024-02-01 15:27:00 -08:00
parent 6d6c268352
commit 0f1f3b1d9b

View file

@ -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") pytest.fail(f"This should have failed!. IT's an invalid key")
except ProxyException as exc: except ProxyException as exc:
print(exc.message) 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 @pytest.mark.asyncio