mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-20 06:23:46 +00:00
test: remove dead tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user