The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(compat-fallout): dashboard tests patch defining modules (main_web_build._build_web_ui, web_routers.skills._installed_hub_identifiers)
Teknium830b82bd0324
diff --git a/tests/hermes_cli/test_dashboard_admin_endpoints.py b/tests/hermes_cli/test_dashboard_admin_endpoints.pyindex 32506d1ee7d..cf70d5dcc65 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.pyindex 39c5100c40a..c44d273e35b 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("<html></html>", 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))