conductor(checkpoint): Test integrity audit complete

This commit is contained in:
2026-03-07 20:15:22 -05:00
parent d2521d6502
commit c2930ebea1
16 changed files with 233 additions and 80 deletions

View File

@@ -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")