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:
@@ -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")
|
||||
Reference in New Issue
Block a user