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 <yuneng@berri.ai>
This commit is contained in:
ryan-crabbe-berri 2026-08-17 17:52:10 -07:00 committed by GitHub
parent 175b639bc3
commit 6e9a3b50c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):