test: add pytest coverage for practice session recording and stats - #11
Conversation
Covers session validation (missing filename, sub-5s skip), aggregate stats (today/week windows, top-songs ordering, unique-song counting, recent capped+ordered, 30-day daily grouping), and per-song history (aggregation, chronological speed progression, loops_used decoding). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 1 minute Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Twenty-second repo from the org test-coverage audit.
12 pytest tests over
routes.py(FastAPI TestClient):/session: missing-filename error, sub-5-second sessions skipped (not persisted), valid sessions appear in stats/stats: empty-database shape, today/week time windows via explicitstarted_attimestamps, top-songs ordered by total practice time (with per-song session counts), unique-song counting, recent list ordered newest-first, 30-day daily grouping excludes older sessions/song/{filename}: empty history for an unknown song, total-time + session-count aggregation, chronological speed-progression ordering vs. newest-first session ordering,loops_usedJSON decoding🤖 Generated with Claude Code