fix(sim): defensive .setdefault('paths', []) in test_context_sim_live
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user