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 Tool Usage simulation.
They MUST NOT be simplified. They ensure that tool execution flows are properly
simulated and verified within the GUI state.
"""
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_tools import ToolsSimulation
def test_tools_simulation_run() -> None:
"""
Verifies that ToolsSimulation requests specific tool executions
and verifies they appear in the resulting session history.
"""
mock_client = MagicMock()
mock_client.wait_for_server.return_value = True
# Mock session entries with tool output
@@ -28,5 +37,6 @@ def test_tools_simulation_run() -> None:
sim = ToolsSimulation(mock_client)
sim.run()
# Verify calls
# ANTI-SIMPLIFICATION: Must assert the specific commands were tested
mock_sim.run_discussion_turn.assert_any_call("List the files in the current directory.")
mock_sim.run_discussion_turn.assert_any_call("Read the first 10 lines of aggregate.py.")