mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
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:
parent
175b639bc3
commit
6e9a3b50c3
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue