From 6e9a3b50c364241caca0eaad4bbfbf383d29586e Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Mon, 17 Aug 2026 17:52:10 -0700 Subject: [PATCH] test(cli): use example.com placeholder host in base-url trailing slash test (#37240) The trailing-slash normalization test used gateway.litellm-sandbox.ai as its base URL. Swap it for gateway.example.com so the test file does not reference a real-looking hostname. The test is fully mocked, so the host value has no effect on what is exercised. Co-authored-by: yuneng-jiang --- tests/test_litellm/proxy/client/cli/test_global_options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):