Fix broken import in test_tool_parameter_types.py

The test was using SerenaMCPFactorySingleProcess and _instantiate_agent()
which were removed when process isolation was removed from the codebase.

Updated to use SerenaMCPFactory and _create_serena_agent() instead.

This fixes the CI pipeline which was failing on all test runs.
This commit is contained in:
Tomasz Wyderka committed 2025-12-27 20:44:43 +01:00
1 parent f8dc10fea3
commit 1289b118ad
1 file changed
+3 -3
+3 -3
View File
@@ -3,7 +3,7 @@ import logging
import pytest
from serena.config.serena_config import SerenaConfig
from serena.mcp import SerenaMCPFactorySingleProcess
from serena.mcp import SerenaMCPFactory
from serena.tools.tools_base import ToolRegistry
@@ -16,9 +16,9 @@ def test_all_tool_parameters_have_type(context):
cfg = SerenaConfig(gui_log_window_enabled=False, web_dashboard=False, log_level=logging.ERROR)
registry = ToolRegistry()
cfg.included_optional_tools = tuple(registry.get_tool_names_optional())
factory = SerenaMCPFactorySingleProcess(context=context)
factory = SerenaMCPFactory(context=context)
# Initialize the agent so that the tools are available
factory._instantiate_agent(cfg, [])
factory.agent = factory._create_serena_agent(cfg, [])
tools = list(factory._iter_tools())
for tool in tools: