tests: patch renamed CLI helper get_llm_extra_body in MCP settings tests

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
enyst 2025-11-11 22:26:54 +00:00
parent ac055d9fcf
commit c4f7fffd05

View File

@ -42,7 +42,7 @@ def agent_store() -> AgentStore:
# ---------------------- tests ----------------------
@patch("openhands_cli.tui.settings.store.get_default_tools", return_value=[])
@patch("openhands_cli.tui.settings.store.get_llm_metadata", return_value={})
@patch("openhands_cli.tui.settings.store.get_llm_extra_body", return_value={})
def test_load_overrides_persisted_mcp_with_mcp_json_file(
mock_meta,
mock_tools,
@ -88,7 +88,7 @@ def test_load_overrides_persisted_mcp_with_mcp_json_file(
@patch("openhands_cli.tui.settings.store.get_default_tools", return_value=[])
@patch("openhands_cli.tui.settings.store.get_llm_metadata", return_value={})
@patch("openhands_cli.tui.settings.store.get_llm_extra_body", return_value={})
def test_load_when_mcp_file_missing_ignores_persisted_mcp(
mock_meta,
mock_tools,