test(core): Replace pytest.fail with functional assertions in api_events and execution_engine

This commit is contained in:
2026-03-02 23:26:19 -05:00
parent 48d111d9b6
commit 194626e5ab
2 changed files with 3 additions and 5 deletions

View File

@@ -39,11 +39,12 @@ def test_execution_engine_basic_flow() -> None:
assert len(ready) == 0
def test_execution_engine_update_nonexistent_task() -> None:
dag = TrackDAG([])
t1 = Ticket(id="T1", description="Task 1", status="todo", assigned_to="worker")
dag = TrackDAG([t1])
engine = ExecutionEngine(dag)
# Should not raise error, or handle gracefully
engine.update_task_status("NONEXISTENT", "completed")
pytest.fail("TODO: Implement assertions")
assert t1.status == "todo"
def test_execution_engine_status_persistence() -> None:
t1 = Ticket(id="T1", description="Task 1", status="todo", assigned_to="worker")