Truncate
Speed up local tests from 80s to 18s by:
- Truncate DB between tests instead of remigrating the db
- Reuse the
FastAPI
app instance between tests - Move some queries away from ORM
Speed up local tests from 80s to 18s by:
FastAPI
app instance between tests