Skip to content

Commit 481da34

Browse files
committed
ControlMode(core,test): Preflight attach_to and harden restart/capture tests
1 parent 6553a4e commit 481da34

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_control_mode_engine.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,16 @@ def flush(self) -> None: # pragma: no cover - not reached
242242
class FakeProcess:
243243
def __init__(self) -> None:
244244
self.stdin = FakeStdin()
245+
self._terminated = False
246+
247+
def terminate(self) -> None:
248+
self._terminated = True
249+
250+
def kill(self) -> None: # pragma: no cover - simple stub
251+
self._terminated = True
252+
253+
def wait(self, timeout: float | None = None) -> None:
254+
return None
245255

246256
engine = ControlModeEngine()
247257
engine.process = FakeProcess() # type: ignore[assignment]

0 commit comments

Comments
 (0)