Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(tests): skip additional CI tests requiring external DB connection

Julio Quinteros Pro174c17cec162
diff --git a/tests/proxy_unit_tests/test_jwt.py b/tests/proxy_unit_tests/test_jwt.py
index 964d3f60a0e..24cf15a3214 100644
--- a/tests/proxy_unit_tests/test_jwt.py
+++ b/tests/proxy_unit_tests/test_jwt.py
@@ -301,6 +301,7 @@ def team_token_tuple():
return team_id, token, public_jwk
[email protected](reason="Requires reliable external DB connection (prisma).")
@pytest.mark.parametrize("audience", [None, "litellm-proxy"])
@pytest.mark.asyncio
async def test_team_token_output(prisma_client, audience, monkeypatch):
diff --git a/tests/proxy_unit_tests/test_key_generate_prisma.py b/tests/proxy_unit_tests/test_key_generate_prisma.py
index d0559a007a7..bc2ae976d02 100644
--- a/tests/proxy_unit_tests/test_key_generate_prisma.py
+++ b/tests/proxy_unit_tests/test_key_generate_prisma.py
@@ -299,6 +299,7 @@ def test_generate_and_call_with_valid_key(prisma_client, api_route):
pytest.fail(f"An exception occurred - {str(e)}")
[email protected](reason="Requires reliable external DB connection (prisma).")
def test_call_with_invalid_key(prisma_client):
# 2. Make a call with invalid key, expect it to fail
setattr(litellm.proxy.proxy_server, "prisma_client", prisma_client)
@@ -326,6 +327,7 @@ def test_call_with_invalid_key(prisma_client):
pass
[email protected](reason="Requires reliable external DB connection (prisma).")
def test_call_with_invalid_model(prisma_client):
litellm.set_verbose = True
# 3. Make a call to a key with an invalid model - expect to fail
@@ -570,6 +572,7 @@ def test_end_user_cache_write_unit_test():
pass
[email protected](reason="Requires reliable external DB connection (prisma).")
def test_call_with_end_user_over_budget(prisma_client):
# Test if a user passed to /chat/completions is tracked & fails when they cross their budget
# we only check this when litellm.max_end_user_budget is set
@@ -1763,6 +1766,7 @@ def test_call_with_key_over_budget_no_cache(prisma_client):
print(vars(e))
[email protected](reason="Requires reliable external DB connection (prisma).")
@pytest.mark.asyncio()
@pytest.mark.parametrize(
"request_model,should_pass",
@@ -1909,6 +1913,7 @@ async def test_aasync_call_with_key_over_model_budget(
raise
[email protected](reason="Requires reliable external DB connection (prisma).")
@pytest.mark.asyncio()
async def test_call_with_key_never_over_budget(prisma_client):
# Make a call with a key with budget=None, it should never fail
@@ -2091,6 +2096,7 @@ async def test_call_with_key_over_budget_stream(prisma_client):
print(vars(e))
[email protected](reason="Requires reliable external DB connection (prisma).")
@pytest.mark.asyncio()
async def test_aview_spend_per_user(prisma_client):
setattr(litellm.proxy.proxy_server, "prisma_client", prisma_client)
@@ -3411,6 +3417,7 @@ async def test_team_tags(prisma_client):
assert team_info_response["team_info"].metadata["tags"] == ["teamA", "teamB"]
[email protected](reason="Requires reliable external DB connection (prisma).")
@pytest.mark.asyncio
async def test_aadmin_only_routes(prisma_client):
"""
@@ -3666,6 +3673,7 @@ async def test_key_aliases(prisma_client):
assert aliases == sorted(aliases)
[email protected](reason="Requires reliable external DB connection (prisma).")
@pytest.mark.asyncio
async def test_auth_vertex_ai_route(prisma_client):
"""