diff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_discoverable_endpoints.py b/tests/test_litellm/proxy/_experimental/mcp_server/test_discoverable_endpoints.py index e08d00f07e1..e49134dd0f3 100644 --- a/tests/test_litellm/proxy/_experimental/mcp_server/test_discoverable_endpoints.py +++ b/tests/test_litellm/proxy/_experimental/mcp_server/test_discoverable_endpoints.py @@ -11236,12 +11236,13 @@ def test_named_resource_discovery_follows_matching_authorization_issuer( assert authorization.json()["issuer"] == resource["authorization_servers"][0] -def test_static_root_path_authorization_discovery_preserves_issuer(monkeypatch): +def test_static_root_path_authorization_discovery_preserves_issuer(monkeypatch, tmp_path): import subprocess import sys monkeypatch.setenv("SERVER_ROOT_PATH", "/gateway") monkeypatch.setenv("PROXY_BASE_URL", "http://testserver/gateway") + monkeypatch.setenv("LITELLM_UI_PATH", str(tmp_path / "ui")) result = subprocess.run( [ sys.executable,