conductor(checkpoint): Phase 1: Setup and Architecture complete

This commit is contained in:
2026-02-24 23:54:15 -05:00
parent 5dc286ffd3
commit b255d4b935
9 changed files with 217 additions and 6 deletions

View File

@@ -9,5 +9,5 @@ auto_add = true
[discussions.main]
git_commit = ""
last_updated = "2026-02-24T22:13:19"
last_updated = "2026-02-24T22:36:27"
history = []

34
tests/test_sim_base.py Normal file
View File

@@ -0,0 +1,34 @@
import pytest
from unittest.mock import MagicMock, patch
import os
import sys
# Ensure project root is in path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from simulation.sim_base import BaseSimulation
def test_base_simulation_init():
with patch('simulation.sim_base.ApiHookClient') as mock_client_class:
mock_client = MagicMock()
mock_client_class.return_value = mock_client
sim = BaseSimulation()
assert sim.client == mock_client
assert sim.sim is not None
def test_base_simulation_setup():
mock_client = MagicMock()
mock_client.wait_for_server.return_value = True
with patch('simulation.sim_base.WorkflowSimulator') as mock_sim_class:
mock_sim = MagicMock()
mock_sim_class.return_value = mock_sim
sim = BaseSimulation(mock_client)
sim.setup("TestSim")
mock_client.wait_for_server.assert_called()
mock_client.click.assert_any_call("btn_reset")
mock_sim.setup_new_project.assert_called()
assert sim.project_path.endswith("temp_testsim.toml")