From 0690520080fde5f63878ac1b4f0e00cc19843f36 Mon Sep 17 00:00:00 2001 From: Joshua Valluru <326636767+joshua-berri@users.noreply.github.com> Date: Fri, 11 Sep 2026 17:26:35 -0700 Subject: [PATCH] test(mcp): isolate static-prefix discovery UI assets --- .../_experimental/mcp_server/test_discoverable_endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,