test(suite): update all tests for streaming/locking architecture and mock parity
This commit is contained in:
@@ -20,7 +20,10 @@ def test_context_sim_live(live_gui: Any) -> None:
|
||||
assert client.wait_for_server(timeout=10)
|
||||
sim = ContextSimulation(client)
|
||||
sim.setup("LiveContextSim")
|
||||
sim.run()
|
||||
client.set_value('current_provider', 'gemini_cli')
|
||||
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"')
|
||||
sim.run() # Ensure history is updated via the async queue
|
||||
time.sleep(2)
|
||||
sim.teardown()
|
||||
|
||||
@pytest.mark.integration
|
||||
@@ -30,6 +33,9 @@ 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
|
||||
assert client.get_value('current_provider') == 'gemini_cli'
|
||||
sim.run()
|
||||
sim.teardown()
|
||||
|
||||
@@ -40,7 +46,10 @@ def test_tools_sim_live(live_gui: Any) -> None:
|
||||
assert client.wait_for_server(timeout=10)
|
||||
sim = ToolsSimulation(client)
|
||||
sim.setup("LiveToolsSim")
|
||||
sim.run()
|
||||
client.set_value('current_provider', 'gemini_cli')
|
||||
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"')
|
||||
sim.run() # Ensure history is updated via the async queue
|
||||
time.sleep(2)
|
||||
sim.teardown()
|
||||
|
||||
@pytest.mark.integration
|
||||
@@ -50,5 +59,7 @@ def test_execution_sim_live(live_gui: Any) -> None:
|
||||
assert client.wait_for_server(timeout=10)
|
||||
sim = ExecutionSimulation(client)
|
||||
sim.setup("LiveExecutionSim")
|
||||
client.set_value('current_provider', 'gemini_cli')
|
||||
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"')
|
||||
sim.run()
|
||||
sim.teardown()
|
||||
|
||||
Reference in New Issue
Block a user