Implement reconnect, idle reporting, and security hardening
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user