Tests: session claim cycle, admin auth & admin routes (+ drop TODO.md) - #12
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Traite les trois issues labellisées
tests, migrées depuis l'ancienTODO.mdvers GitHub Issues.Tests ajoutés
_make_claim,_spawn_claims(skip sousMIN_WORDS), et le cyclepending → claim / remove_claimdans_process_claims.extract_and_verifyet le WebSocket sont mockés, persistance désactivée.require_adminqui rejette un token absent / invalide / expiré (401). Complètetest_auth_route(déjà couvre/admin/login).admin.pyviaTestClientavecrequire_adminoverridé (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.mdau profit des GitHub Issues.Closes #7, closes #8, closes #9.
🤖 Generated with Claude Code