mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-27 07:52:03 +00:00
fix: skip pty and termios on windows for test_ai_tui_agent_harness.py
Added `pytest.importorskip("pty")` and `pytest.importorskip("termios")` before `_load_harness_module()` call to properly skip `test_ai_tui_agent_harness.py` on Windows environments where these modules are not available. This prevents the `ModuleNotFoundError: No module named 'termios'` error during pytest collection.
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
a0cd669f45
commit
b8da933fb7
1 file changed
+4
@@ -7,6 +7,10 @@ import sys
|
||||
import pytest
|
||||
|
||||
|
||||
pytest.importorskip("pty")
|
||||
pytest.importorskip("termios")
|
||||
|
||||
|
||||
def _load_harness_module():
|
||||
repo_root = Path(__file__).resolve().parents[2]
|
||||
script_path = repo_root / "scripts" / "ai_tui_agent_test.py"
|
||||
|
||||
Reference in new issue
Block a user