fix(tests): auto-derive unique port+state-dir per worktree (fixes parallel pytest)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Sprint 1 test suite for the Hermes Web UI.
|
||||
|
||||
Tests use the ISOLATED test server running on http://127.0.0.1:8788.
|
||||
Tests use the ISOLATED test server. Port is auto-derived per worktree (see conftest.py).
|
||||
Production server (port 8787) and your real conversations are never touched.
|
||||
Start the server before running:
|
||||
<repo>/start.sh
|
||||
@@ -27,7 +27,7 @@ import pathlib
|
||||
# Allow importing server modules directly for unit tests
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).parent.parent.parent))
|
||||
|
||||
BASE = "http://127.0.0.1:8788" # test server (isolated from production)
|
||||
from tests._pytest_port import BASE
|
||||
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user