Skip to content

Tests: session claim cycle, admin auth & admin routes (+ drop TODO.md) - #12

Merged
Logan2234 merged 2 commits into
masterfrom
chore/drop-todo-for-issues
Jul 1, 2026
Merged

Tests: session claim cycle, admin auth & admin routes (+ drop TODO.md)#12
Logan2234 merged 2 commits into
masterfrom
chore/drop-todo-for-issues

Conversation

@Logan2234

Copy link
Copy Markdown
Owner

Traite les trois issues labellisées tests, migrées depuis l'ancien TODO.md vers GitHub Issues.

Tests ajoutés

  • Tests : session.py (cycle claims) #7 — session.py (cycle claims) : _make_claim, _spawn_claims (skip sous MIN_WORDS), et le cycle pending → claim / remove_claim dans _process_claims. extract_and_verify et le WebSocket sont mockés, persistance désactivée.
  • Tests : Auth #8 — Auth : round-trip et expiration du JWT admin, et require_admin qui rejette un token absent / invalide / expiré (401). Complète test_auth_route (déjà couvre /admin/login).
  • Tests : routes admin #9 — routes admin : un test d'intégration par route de admin.py via TestClient avec require_admin overridé (health, prompt, config GET/PATCH, logs, ws/status, whisper/transcribe, model-test). Les appels services réels (Whisper, API modèle) sont mockés.

Inclut aussi le commit initial qui supprime TODO.md au profit des GitHub Issues.

Closes #7, closes #8, closes #9.

🤖 Generated with Claude Code

Logan Willem and others added 2 commits July 1, 2026 21:16
Cover the three GitHub issues labelled "tests":
- #7: _make_claim, _spawn_claims (MIN_WORDS skip), the pending -> claim /
  remove_claim lifecycle in _process_claims (mocked extract_and_verify + WS).
- #8: admin JWT round-trip/expiry and require_admin rejecting a
  missing/invalid/expired token.
- #9: one integration test per /admin route via TestClient with
  require_admin overridden (Whisper/model-test service calls mocked).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WR8LQfqozNYuYh6CEMZECp
@Logan2234
Logan2234 merged commit 3521647 into master Jul 1, 2026
4 checks passed
@Logan2234
Logan2234 deleted the chore/drop-todo-for-issues branch July 1, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests : routes admin Tests : Auth Tests : session.py (cycle claims)

1 participant