Implement reconnect, idle reporting, and security hardening

This commit is contained in:
2026-02-16 23:03:02 +09:00
parent 582c19bb50
commit ebe7902362
8 changed files with 165 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
"""PtyManager 테스트."""
import pytest
from lazy_enter.pty_manager import PtyManager
@@ -10,7 +12,11 @@ def test_initial_state():
def test_start_and_stop():
pty = PtyManager("cat")
pty.start()
try:
pty.start()
except OSError as exc:
pytest.skip(f"PTY unavailable in this environment: {exc}")
assert pty.is_alive
pty.stop()
assert not pty.is_alive