diff --git a/tests/llm_translation/test_anthropic_completion.py b/tests/llm_translation/test_anthropic_completion.py index 3c1162cd01..b6a98e4b2c 100644 --- a/tests/llm_translation/test_anthropic_completion.py +++ b/tests/llm_translation/test_anthropic_completion.py @@ -1350,6 +1350,9 @@ def test_anthropic_text_editor(): @pytest.mark.parametrize("spec", ["anthropic", "openai"]) +@pytest.mark.skipif( + os.getenv("ZAPIER_CI_CD_MCP_TOKEN") is None, reason="ZAPIER_CI_CD_MCP_TOKEN not set" +) def test_anthropic_mcp_server_tool_use(spec: str): litellm._turn_on_debug() @@ -1391,6 +1394,9 @@ def test_anthropic_mcp_server_tool_use(spec: str): @pytest.mark.parametrize( "model", ["openai/gpt-4.1", "anthropic/claude-sonnet-4-20250514"] ) +@pytest.mark.skipif( + os.getenv("ZAPIER_CI_CD_MCP_TOKEN") is None, reason="ZAPIER_CI_CD_MCP_TOKEN not set" +) def test_anthropic_mcp_server_responses_api(model: str): from litellm import responses diff --git a/tests/logging_callback_tests/test_alerting.py b/tests/logging_callback_tests/test_alerting.py index 2278b6ff93..86588bbd14 100644 --- a/tests/logging_callback_tests/test_alerting.py +++ b/tests/logging_callback_tests/test_alerting.py @@ -788,40 +788,6 @@ async def test_region_outage_alerting_called( mock_send_alert.assert_not_called() -@pytest.mark.asyncio -@pytest.mark.skip(reason="test only needs to run locally ") -async def test_alerting(): - router = litellm.Router( - model_list=[ - { - "model_name": "gpt-3.5-turbo", - "litellm_params": { - "model": "gpt-3.5-turbo", - "api_key": "bad_key", - }, - } - ], - debug_level="DEBUG", - set_verbose=True, - alerting_config=AlertingConfig( - alerting_threshold=10, # threshold for slow / hanging llm responses (in seconds). Defaults to 300 seconds - webhook_url=os.getenv( - "SLACK_WEBHOOK_URL" - ), # webhook you want to send alerts to - ), - ) - try: - await router.acompletion( - model="gpt-3.5-turbo", - messages=[{"role": "user", "content": "Hey, how's it going?"}], - ) - - except Exception: - pass - finally: - await asyncio.sleep(3) - - @pytest.mark.asyncio async def test_langfuse_trace_id(): """