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]

test(cli): use example.com placeholder host in base-url trailing slash test (#37240)

ryan-crabbe-berri6e9a3b50c364
diff --git a/tests/test_litellm/proxy/client/cli/test_global_options.py b/tests/test_litellm/proxy/client/cli/test_global_options.py
index 9995cb1bca5..9c6fc15b242 100644
--- a/tests/test_litellm/proxy/client/cli/test_global_options.py
+++ b/tests/test_litellm/proxy/client/cli/test_global_options.py
@@ -70,9 +70,9 @@ def test_base_url_trailing_slash_normalized(cli_runner):
) as mock_post,
patch("requests.get", side_effect=ValueError("stop after start request")),
):
- cli_runner.invoke(cli, ["--base-url", "https://gateway.litellm-sandbox.ai/", "login"])
+ cli_runner.invoke(cli, ["--base-url", "https://gateway.example.com/", "login"])
- mock_post.assert_called_once_with("https://gateway.litellm-sandbox.ai/sso/cli/start", timeout=10)
+ mock_post.assert_called_once_with("https://gateway.example.com/sso/cli/start", timeout=10)
def test_cli_version_command(cli_runner):