refactor(sdm): Global pass with refined 'External Only' SDM tags. Pruned redundant internal references and fixed indentation logic in injector. Verified full project compilation.

This commit is contained in:
2026-05-09 14:32:44 -04:00
parent 696c08692e
commit 8c06c1767b
142 changed files with 2352 additions and 990 deletions
+6 -4
View File
@@ -15,7 +15,8 @@ from simulation.sim_base import BaseSimulation
def test_base_simulation_init() -> None:
"""
Verifies that the BaseSimulation initializes the ApiHookClient correctly.
Verifies that the BaseSimulation initializes the ApiHookClient correctly.
"""
with patch('simulation.sim_base.ApiHookClient') as mock_client_class:
mock_client = MagicMock()
@@ -27,8 +28,9 @@ def test_base_simulation_init() -> None:
def test_base_simulation_setup() -> None:
"""
Verifies that the setup routine correctly resets the GUI state
and initializes a clean temporary project for simulation.
Verifies that the setup routine correctly resets the GUI state
and initializes a clean temporary project for simulation.
"""
mock_client = MagicMock()
mock_client.wait_for_server.return_value = True
@@ -43,4 +45,4 @@ def test_base_simulation_setup() -> None:
mock_client.click.assert_any_call("btn_reset")
mock_sim.setup_new_project.assert_called()
from pathlib import Path
assert Path(sim.project_path).as_posix().endswith("tests/artifacts/temp_testsim.toml")
assert Path(sim.project_path).as_posix().endswith("tests/artifacts/temp_testsim.toml")