Private
Public Access
0
0

fix(sim): defensive .setdefault('paths', []) in test_context_sim_live

This commit is contained in:
2026-06-10 11:33:15 -04:00
parent c729f8adaf
commit 4660b8c874
4 changed files with 26 additions and 79 deletions
+2 -5
View File
@@ -22,15 +22,12 @@ def test_context_sim_live(live_gui: Any) -> None:
sim = ContextSimulation(client)
sim.setup("LiveContextSim")
client.set_value('current_provider', 'gemini_cli')
# The gemini_cli adapter does not use the model name, but the controller's
# _do_generate path still reads it. Use an explicit placeholder so the
# downstream code does not raise KeyError on a stale 'model' field.
client.set_value('current_model', 'gemini-cli')
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"')
client.set_value('auto_add_history', True)
sim.run()
sim.run() # Ensure history is updated via the async queue
time.sleep(2)
sim.teardown()
@pytest.mark.integration
def test_ai_settings_sim_live(live_gui: Any) -> None:
"""Run the AI Settings simulation against a live GUI."""