test: resolve dashboard logo sources after the UI move

This commit is contained in:
Devin AI 2026-11-10 19:53:03 +00:00
parent 8ed17cea06
commit 9c39d76f24
3 changed files with 3 additions and 3 deletions

View file

@ -116,7 +116,7 @@ class TestMCPRegistryFile:
proxy_dir: Final = os.path.dirname(registry_path)
built_logos_dir: Final = os.path.join(proxy_dir, "_experimental", "out", "assets", "logos")
source_logos_dir: Final = os.path.join(
proxy_dir, "..", "..", "ui", "litellm-dashboard", "public", "assets", "logos"
proxy_dir, "..", "ui", "litellm-dashboard", "public", "assets", "logos"
)
bundled: Final = [s for s in data["servers"] if s.get("icon_url", "").startswith("/ui/assets/logos/")]
assert bundled, "at least one registry entry ships its own icon"

View file

@ -29,7 +29,7 @@ def test_the_dropdown_logo_asset_exists():
"""A logo the dashboard cannot resolve degrades silently to a letter tile."""
logo = _pointfive_config()["logo"]
repo_root = Path(litellm.__file__).parent.parent
asset = repo_root / "ui" / "litellm-dashboard" / "public" / "assets" / "logos" / logo
asset = repo_root / "litellm" / "ui" / "litellm-dashboard" / "public" / "assets" / "logos" / logo
assert logo == "pointfive.png"
assert asset.is_file()

View file

@ -40,7 +40,7 @@ def test_the_dropdown_logo_asset_exists():
"""A logo the dashboard cannot resolve degrades silently to a letter tile."""
logo = _zerobus_config().logo
repo_root = Path(litellm.__file__).parent.parent
asset = repo_root / "ui" / "litellm-dashboard" / "public" / "assets" / "logos" / logo
asset = repo_root / "litellm" / "ui" / "litellm-dashboard" / "public" / "assets" / "logos" / logo
assert asset.is_file()