From 830b82bd0324c1620a22cfafe4df501aea03c660 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 3 Sep 2026 15:56:38 -0700 Subject: [PATCH] fix(compat-fallout): dashboard tests patch defining modules (main_web_build._build_web_ui, web_routers.skills._installed_hub_identifiers) --- tests/hermes_cli/test_dashboard_admin_endpoints.py | 2 +- tests/hermes_cli/test_dashboard_web_dist_validation.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hermes_cli/test_dashboard_admin_endpoints.py b/tests/hermes_cli/test_dashboard_admin_endpoints.py index 32506d1ee7..cf70d5dcc6 100644 --- a/tests/hermes_cli/test_dashboard_admin_endpoints.py +++ b/tests/hermes_cli/test_dashboard_admin_endpoints.py @@ -681,7 +681,7 @@ class TestOfficialSkillsCatalogEndpoint: lambda self: metas, ) monkeypatch.setattr( - "hermes_cli.web_server_profiles._installed_hub_identifiers", + "hermes_cli.web_routers.skills._installed_hub_identifiers", lambda profile=None: {"official/gifs/gif-search": {"name": "gif-search"}}, ) r = self.client.get("/api/skills/hub/official") diff --git a/tests/hermes_cli/test_dashboard_web_dist_validation.py b/tests/hermes_cli/test_dashboard_web_dist_validation.py index 39c5100c40..c44d273e35 100644 --- a/tests/hermes_cli/test_dashboard_web_dist_validation.py +++ b/tests/hermes_cli/test_dashboard_web_dist_validation.py @@ -74,7 +74,7 @@ def test_env_dist_without_index_exits(main_mod, monkeypatch, tmp_path, capsys): ) builds = [] monkeypatch.setattr( - main_mod, "_build_web_ui", lambda *a, **k: builds.append(a) or True + "hermes_cli.main_web_build._build_web_ui", lambda *a, **k: builds.append(a) or True ) with pytest.raises(SystemExit) as exc: @@ -122,7 +122,7 @@ def test_skip_build_missing_dist_attempts_one_recovery_build( (dist / "index.html").write_text("", encoding="utf-8") return True - monkeypatch.setattr(main_mod, "_build_web_ui", fake_build) + monkeypatch.setattr("hermes_cli.main_web_build._build_web_ui", fake_build) main_mod.cmd_dashboard(_args(skip_build=True))