test: switch sim tests from gemini_cli to real minimax/M2.7 provider

Per user direction: use a real provider instead of mocks. The 10 sim
tests that previously set current_provider='gemini_cli' + gcli_path to
tests/mock_gemini_cli.py now set:
  current_provider='minimax'
  current_model='MiniMax-M2.7'

Removed the gcli_path setters (no longer needed). Updated comments
that mentioned 'Use gemini_cli with the mock script'. Updated
test_sim_ai_settings.py provider mock to minimax.

tests/mock_gemini_cli.py + mock_gcli.bat retained as a backstop (no
longer used by any current test). tests/test_cli_tool_bridge*.py
GEMINI_CLI_HOOK_CONTEXT references retained (meta-tooling, separate).
This commit is contained in:
ed
2026-07-05 21:21:25 -04:00
parent 9586265df0
commit 3b55bdff0e
11 changed files with 36 additions and 52 deletions
+10 -10
View File
@@ -21,8 +21,8 @@ def test_context_sim_live(live_gui: Any) -> None:
assert client.wait_for_server(timeout=10)
sim = ContextSimulation(client)
sim.setup("LiveContextSim")
client.set_value('current_provider', 'gemini_cli')
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"')
client.set_value('current_provider', 'minimax')
client.set_value('current_model', 'MiniMax-M2.7')
client.set_value('auto_add_history', True)
sim.run() # Ensure history is updated via the async queue
time.sleep(2)
@@ -35,10 +35,10 @@ def test_ai_settings_sim_live(live_gui: Any) -> None:
assert client.wait_for_server(timeout=10)
sim = AISettingsSimulation(client)
sim.setup("LiveAISettingsSim")
client.set_value('current_provider', 'gemini_cli')
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"') # Expect gemini_cli as the provider
client.set_value('current_provider', 'minimax')
client.set_value('current_model', 'MiniMax-M2.7')
client.set_value('auto_add_history', True)
assert client.get_value('current_provider') == 'gemini_cli'
assert client.get_value('current_provider') == 'minimax'
sim.run()
sim.teardown()
@@ -49,8 +49,8 @@ def test_tools_sim_live(live_gui: Any) -> None:
assert client.wait_for_server(timeout=10)
sim = ToolsSimulation(client)
sim.setup("LiveToolsSim")
client.set_value('current_provider', 'gemini_cli')
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"')
client.set_value('current_provider', 'minimax')
client.set_value('current_model', 'MiniMax-M2.7')
client.set_value('auto_add_history', True)
sim.run() # Ensure history is updated via the async queue
time.sleep(2)
@@ -64,10 +64,10 @@ def test_execution_sim_live(live_gui: Any) -> None:
sim.setup("LiveExecutionSim")
# Enable manual approval to test modals
client.set_value('manual_approve', True)
# Use gemini_cli with the mock script (same pattern as the other 3 sims
# Use minimax (real provider) for the live sim
# in this file: context_sim_live, ai_settings_sim_live, tools_sim_live)
client.set_value('current_provider', 'gemini_cli')
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"')
client.set_value('current_provider', 'minimax')
client.set_value('current_model', 'MiniMax-M2.7')
client.set_value('auto_add_history', True)
sim.run()
time.sleep(2)