idk why these weren't committed
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
from unittest.mock import patch, MagicMock
|
||||
|
||||
# Ensure project root is in path
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||
@@ -29,7 +28,7 @@ class TestArchBoundaryPhase3(unittest.TestCase):
|
||||
|
||||
def test_cascade_blocks_multi_hop(self) -> None:
|
||||
"""Test that blocking cascades through multiple dependencies."""
|
||||
from src.models import Ticket, Track
|
||||
from src.models import Ticket
|
||||
from src.dag_engine import TrackDAG, ExecutionEngine
|
||||
|
||||
t1 = Ticket(id="T1", description="d1", status="blocked", assigned_to="worker1")
|
||||
@@ -45,7 +44,7 @@ class TestArchBoundaryPhase3(unittest.TestCase):
|
||||
|
||||
def test_manual_unblock_restores_todo(self) -> None:
|
||||
"""Test that unblocking a task manually works if dependencies are met."""
|
||||
from src.models import Ticket, Track
|
||||
from src.models import Ticket
|
||||
from src.dag_engine import TrackDAG, ExecutionEngine
|
||||
|
||||
t1 = Ticket(id="T1", description="d1", status="completed", assigned_to="worker1")
|
||||
@@ -64,7 +63,7 @@ class TestArchBoundaryPhase3(unittest.TestCase):
|
||||
|
||||
def test_in_progress_not_blocked(self) -> None:
|
||||
"""Test that in_progress tasks are not blocked automatically (only todo)."""
|
||||
from src.models import Ticket, Track
|
||||
from src.models import Ticket
|
||||
from src.dag_engine import TrackDAG, ExecutionEngine
|
||||
|
||||
t1 = Ticket(id="T1", description="d1", status="blocked", assigned_to="worker1")
|
||||
@@ -79,7 +78,7 @@ class TestArchBoundaryPhase3(unittest.TestCase):
|
||||
|
||||
def test_execution_engine_tick_cascades_blocks(self) -> None:
|
||||
"""Test that ExecutionEngine.tick() triggers the cascading blocks."""
|
||||
from src.models import Ticket, Track
|
||||
from src.models import Ticket
|
||||
from src.dag_engine import TrackDAG, ExecutionEngine
|
||||
|
||||
t1 = Ticket(id="T1", description="d1", status="blocked", assigned_to="worker1")
|
||||
|
||||
Reference in New Issue
Block a user