Commit Graph

2 Commits

Author SHA1 Message Date
kennethreitz bab27364fc Integrate turboAPI as FastAPI replacement for Zig-powered HTTP performance
Replace FastAPI with turboAPI across the entire codebase:
- Swap all imports from fastapi to turboapi (TurboAPI, APIRouter, HTTPException, etc.)
- Keep starlette imports for Jinja2Templates and StaticFiles (not yet in turboapi)
- Remove unsupported `example=` params from Query/Path declarations
- Update entry point to use turboapi's native server (app.run())
- Update test clients to use turboapi.testclient.TestClient

The app loads successfully with all 200+ routes registered. turboAPI's
Zig HTTP core provides significant throughput improvements over uvicorn.

Note: turboAPI's TestClient has limited support for Request injection
and Query defaults, causing some test failures. The actual server
runtime handles these correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 00:38:03 -04:00
kennethreitz 45cca004f3 Improve test coverage from 76% to 81% with 213 new tests
- Add test_coverage_improvements.py (77 tests): reading plans, stories,
  bible routes, search, interlinear, topics, edge cases
- Add test_coverage_part2.py (77 tests): cross_references, jinja_filters,
  commentary_loader, topics, search_index, kjv, books, strongs modules
- Add test_coverage_part3.py (59 tests): API endpoints, web routes,
  Strong's, family tree, timeline, study guides, misc routes

Fix exodus.json commentary data:
- Fix 72 verses in chapters 29-31 with malformed questions arrays
- Questions were nested arrays [["q"]] instead of strings ["q"]

Test results: 710 passed, 1 skipped, 81% coverage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 13:47:28 -05:00