diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e54c46..4d6bcf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ users enter any string (e.g. `openai/gpt-5.4`, `deepseek/deepseek-r2`, or any provider-prefixed ID) and press Enter or click + to use it immediately. i18n keys added to en, es, zh. -- Total tests: TBD (was 1117) +- Total tests: 1130 (was 1117) ## [v0.50.41] feat(ui): render MEDIA: images inline in web UI chat (fixes #450) diff --git a/TESTING.md b/TESTING.md index 8b883ad..b80b22a 100644 --- a/TESTING.md +++ b/TESTING.md @@ -8,7 +8,7 @@ > Prerequisites: SSH tunnel is active on port 8787. Open http://localhost:8787 in browser. > Server health check: curl http://127.0.0.1:8787/health should return {"status":"ok"}. > -> Automated tests: 1117 total (1117 passing, 0 known failures). Includes onboarding coverage for bootstrap/static wizard presence, real provider config persistence (`config.yaml` + `.env`), the `/api/onboarding/*` backend, and the onboarding skip/existing-config guard. +> Automated tests: 1130 total (1130 passing, 0 known failures). Includes onboarding coverage for bootstrap/static wizard presence, real provider config persistence (`config.yaml` + `.env`), the `/api/onboarding/*` backend, and the onboarding skip/existing-config guard. > Run: `pytest tests/ -v --timeout=60` --- diff --git a/tests/test_sprint42.py b/tests/test_sprint42.py index 9db1972..465fdba 100644 --- a/tests/test_sprint42.py +++ b/tests/test_sprint42.py @@ -17,6 +17,19 @@ REPO_ROOT = pathlib.Path(__file__).parent.parent STREAMING_PY = (REPO_ROOT / "api" / "streaming.py").read_text() +# ── Shared helpers for sprint-42 additional tests ──────────────────────────── + +REPO = REPO_ROOT # alias used by #427 tests +_SESSIONS_JS = REPO_ROOT / 'static' / 'sessions.js' +_STREAMING_PY = REPO_ROOT / 'api' / 'streaming.py' +_MESSAGES_JS = REPO_ROOT / 'static' / 'messages.js' +_UI_JS = REPO_ROOT / 'static' / 'ui.js' + +def _read_sessions_js(): + return _SESSIONS_JS.read_text(encoding='utf-8') + +# ───────────────────────────────────────────────────────────────────────────── + class TestSessionDBInjection(unittest.TestCase): """Verify SessionDB is initialized and passed to AIAgent in streaming.py."""