mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
test: resolve dashboard logo sources after the UI move
This commit is contained in:
parent
8ed17cea06
commit
9c39d76f24
3 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue