Skip to content

Commit c569212

Browse files
authored
Merge pull request oraios#883 from ximot/fix/test-tool-parameter-types-import
Fix broken import in test_tool_parameter_types.py
2 parents f8dc10f + 1289b11 commit c569212

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/serena/test_tool_parameter_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
from serena.config.serena_config import SerenaConfig
6-
from serena.mcp import SerenaMCPFactorySingleProcess
6+
from serena.mcp import SerenaMCPFactory
77
from serena.tools.tools_base import ToolRegistry
88

99

@@ -16,9 +16,9 @@ def test_all_tool_parameters_have_type(context):
1616
cfg = SerenaConfig(gui_log_window_enabled=False, web_dashboard=False, log_level=logging.ERROR)
1717
registry = ToolRegistry()
1818
cfg.included_optional_tools = tuple(registry.get_tool_names_optional())
19-
factory = SerenaMCPFactorySingleProcess(context=context)
19+
factory = SerenaMCPFactory(context=context)
2020
# Initialize the agent so that the tools are available
21-
factory._instantiate_agent(cfg, [])
21+
factory.agent = factory._create_serena_agent(cfg, [])
2222
tools = list(factory._iter_tools())
2323

2424
for tool in tools:

0 commit comments

Comments
 (0)