mirror of
https://github.com/barkeser2002/offline-db.git
synced 2026-09-25 00:59:54 +03:00
- Implemented tests in `content/tests/test_performance.py` using `TestCase.assertNumQueries` to prevent N+1 query regressions in `content/views.py`. - Tested `AnimeViewSet` (list, detail), `EpisodeViewSet` (list, detail), and `HomeViewSet` (list) ensuring efficient query counts matching prefetch optimizations. - Updated `.jules/development-plan.md` to check off the N+1 query assertion tests step. - Updated `run_all_tests.sh` to correctly execute all tests via `python -m pytest`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
3 lines
90 B
Bash
Executable File
3 lines
90 B
Bash
Executable File
#!/bin/bash
|
|
USE_SQLITE=True DJANGO_SECRET_KEY=dummy SHOPIER_SECRET=dummy python -m pytest
|