mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
test(mcp): isolate static-prefix discovery UI assets
This commit is contained in:
parent
f66239a50f
commit
0690520080
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue