chore(tech-debt): Finalize gui_2.py cleanup and test suite discipline

This commit is contained in:
2026-03-02 21:43:56 -05:00
parent 8af1bcd960
commit a569f8c02f
26 changed files with 58 additions and 364 deletions

View File

@@ -11,7 +11,7 @@ def test_ai_settings_simulation_run() -> None:
mock_client = MagicMock()
mock_client.wait_for_server.return_value = True
mock_client.get_value.side_effect = lambda key: {
"current_provider": "gemini",
"current_provider": "gemini_cli",
"current_model": "gemini-2.5-flash-lite"
}.get(key)
with patch('simulation.sim_base.WorkflowSimulator') as mock_sim_class:
@@ -20,8 +20,7 @@ def test_ai_settings_simulation_run() -> None:
sim = AISettingsSimulation(mock_client)
# Override the side effect after initial setup if needed or just let it return the same for simplicity
# Actually, let's use a side effect that updates
vals = {"current_provider": "gemini", "current_model": "gemini-2.5-flash-lite"}
vals = {"current_provider": "gemini_cli", "current_model": "gemini-2.5-flash-lite"}
def side_effect(key):
return vals.get(key)
@@ -31,5 +30,5 @@ def test_ai_settings_simulation_run() -> None:
mock_client.set_value.side_effect = set_side_effect
sim.run()
# Verify calls
mock_client.set_value.assert_any_call("current_model", "gemini-1.5-flash")
mock_client.set_value.assert_any_call("current_model", "gemini-2.0-flash")
mock_client.set_value.assert_any_call("current_model", "gemini-2.5-flash-lite")