fix(plugins): keep late activation dependency-passive
This commit is contained in:
@@ -13,13 +13,14 @@ import unicodedata
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Awaitable, Callable, ClassVar, Dict, Optional, Any, Tuple, List
|
||||
|
||||
import aiohttp
|
||||
|
||||
aiohttp: Any = None
|
||||
try:
|
||||
import aiohttp as _aiohttp
|
||||
from slack_bolt.async_app import AsyncApp
|
||||
from slack_bolt.adapter.socket_mode.async_handler import AsyncSocketModeHandler
|
||||
from slack_sdk.web.async_client import AsyncWebClient
|
||||
|
||||
aiohttp = _aiohttp
|
||||
SLACK_AVAILABLE = True
|
||||
except ImportError:
|
||||
SLACK_AVAILABLE = False
|
||||
|
||||
@@ -39,7 +39,7 @@ def test_plugins_manage_install_rescans_fires_on_plugin_loaded_and_exposes_mcp_s
|
||||
events: list = []
|
||||
manager.on_plugin_loaded(events.append)
|
||||
with patch("hermes_cli.plugins_cmd._install_plugin_core", _fake_install_core), \
|
||||
patch("hermes_cli.plugins_cmd._install_python_dependencies_quietly", return_value=[]), \
|
||||
patch("hermes_cli.plugins_cmd._python_dependency_summary", return_value=[]), \
|
||||
patch("gateway.control_socket.reload_gateway_plugins", return_value=None): # no gateway running
|
||||
resp = server.handle_request({"id": "1", "method": "plugins.manage",
|
||||
"params": {"action": "install", "repo": "owner/late-mcp", "enable": True}})
|
||||
|
||||
Reference in New Issue
Block a user