conductor(checkpoint): Test integrity audit complete
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
"""
|
||||
ANTI-SIMPLIFICATION: These tests verify the Simulation of AI Settings interactions.
|
||||
They MUST NOT be simplified. They ensure that changes to provider and model
|
||||
selections are properly simulated and verified via the ApiHookClient.
|
||||
"""
|
||||
from unittest.mock import MagicMock, patch
|
||||
import os
|
||||
import sys
|
||||
@@ -9,6 +14,10 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "s
|
||||
from simulation.sim_ai_settings import AISettingsSimulation
|
||||
|
||||
def test_ai_settings_simulation_run() -> None:
|
||||
"""
|
||||
Verifies that AISettingsSimulation correctly cycles through models
|
||||
to test the settings UI components.
|
||||
"""
|
||||
mock_client = MagicMock()
|
||||
mock_client.wait_for_server.return_value = True
|
||||
mock_client.get_value.side_effect = lambda key: {
|
||||
@@ -31,5 +40,6 @@ def test_ai_settings_simulation_run() -> None:
|
||||
mock_client.set_value.side_effect = set_side_effect
|
||||
sim.run()
|
||||
# Verify calls
|
||||
# ANTI-SIMPLIFICATION: Assert that specific models were set during simulation
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user