The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(tests): hoist plugin-registry test imports to module level
kshitijk4poor7a54598fc779
diff --git a/tests/gateway/test_platform_registry.py b/tests/gateway/test_platform_registry.pyindex b7825e4558e..13276410621 100644--- a/tests/gateway/test_platform_registry.py+++ b/tests/gateway/test_platform_registry.py@@ -1,9 +1,11 @@"""Tests for the platform adapter registry and dynamic Platform enum."""+import threadingfrom unittest.mock import MagicMockfrom gateway.platform_registry import PlatformRegistry, PlatformEntryfrom gateway.config import Platform, GatewayConfig+from hermes_cli import plugins_loader# ── Platform enum dynamic members ─────────────────────────────────────────@@ -681,10 +683,6 @@ class TestMigratedPlatformWiring:def test_registry_walk_from_plugin_load_worker_does_not_wait_on_parent(monkeypatch):"""register() re-walking the registry on its deadline worker must not block on its own or a sibling load."""- import threading-- from hermes_cli import plugins_loader-monkeypatch.setattr(plugins_loader, "_resolve_plugin_load_timeout", lambda: 0.5)reg = PlatformRegistry()abandoned = []