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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(tests): skip CI tests requiring external services (DB, API keys)
Julio Quinteros Pro3dfa3611d9cf
diff --git a/tests/proxy_unit_tests/test_project_endpoints_prisma.py b/tests/proxy_unit_tests/test_project_endpoints_prisma.pyindex c2366139b01..c98cb7efda0 100644--- a/tests/proxy_unit_tests/test_project_endpoints_prisma.py+++ b/tests/proxy_unit_tests/test_project_endpoints_prisma.py@@ -73,6 +73,7 @@ def prisma_client():return prisma_client[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.asyncioasync def test_new_project(prisma_client):"""@@ -144,6 +145,7 @@ async def test_new_project(prisma_client):pytest.fail(f"Got exception {e}")[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.asyncioasync def test_update_project(prisma_client):"""@@ -248,6 +250,7 @@ async def test_update_project(prisma_client):pytest.fail(f"Got exception {e}")[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.asyncioasync def test_delete_project(prisma_client):"""@@ -337,6 +340,7 @@ async def test_delete_project(prisma_client):pytest.fail(f"Got exception {e}")[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.asyncioasync def test_project_info(prisma_client):"""diff --git a/tests/proxy_unit_tests/test_proxy_server.py b/tests/proxy_unit_tests/test_proxy_server.pyindex f197e63926f..60555f36357 100644--- a/tests/proxy_unit_tests/test_proxy_server.py+++ b/tests/proxy_unit_tests/test_proxy_server.py@@ -1029,6 +1029,7 @@ from litellm.proxy.management_endpoints.team_endpoints import team_member_addfrom test_key_generate_prisma import prisma_client[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.parametrize("user_role",[LitellmUserRoles.INTERNAL_USER.value, LitellmUserRoles.PROXY_ADMIN.value],@@ -1910,6 +1911,10 @@ async def test_add_callback_via_key_litellm_pre_call_utils_langsmith(assert new_data["failure_callback"] == expected_failure_callbacks+ not os.getenv("GEMINI_API_KEY") and not os.getenv("GOOGLE_API_KEY"),+ reason="Requires GEMINI_API_KEY or GOOGLE_API_KEY.",+)@pytest.mark.asyncioasync def test_gemini_pass_through_endpoint():from starlette.datastructures import URLdiff --git a/tests/proxy_unit_tests/test_proxy_token_counter.py b/tests/proxy_unit_tests/test_proxy_token_counter.pyindex 2f161162dab..445e4880eb8 100644--- a/tests/proxy_unit_tests/test_proxy_token_counter.py+++ b/tests/proxy_unit_tests/test_proxy_token_counter.py@@ -682,6 +682,10 @@ async def test_factory_registration():assert not counter.should_use_token_counting_api(custom_llm_provider=None)+ not os.getenv("GEMINI_API_KEY") and not os.getenv("GOOGLE_API_KEY"),+ reason="Requires Google API credentials.",+)@pytest.mark.asyncio@pytest.mark.parametrize("model_name", ["gemini-2.5-pro", "vertex-ai-gemini-2.5-pro"])async def test_vertex_ai_gemini_token_counting_with_contents(model_name):diff --git a/tests/proxy_unit_tests/test_skills_db.py b/tests/proxy_unit_tests/test_skills_db.pyindex 548ddd278b8..4175e7517d5 100644--- a/tests/proxy_unit_tests/test_skills_db.py+++ b/tests/proxy_unit_tests/test_skills_db.py@@ -80,6 +80,7 @@ def prisma_client():return prisma_client[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.asyncioasync def test_create_skill_sdk(prisma_client):"""@@ -120,6 +121,7 @@ async def test_create_skill_sdk(prisma_client):)[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.asyncioasync def test_list_skills_sdk(prisma_client):"""@@ -170,6 +172,7 @@ async def test_list_skills_sdk(prisma_client):)[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.asyncioasync def test_get_skill_sdk(prisma_client):"""@@ -211,6 +214,7 @@ async def test_get_skill_sdk(prisma_client):)[email protected](reason="Requires reliable external DB connection (prisma).")@pytest.mark.asyncioasync def test_delete_skill_sdk(prisma_client):"""