Files
offline-db/run_all_tests.sh
Barış Keserandgoogle-labs-jules[bot] 2f7536e59f Add assertNumQueries performance tests for content views (#298)
- 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>
2026-03-16 05:34:31 +00:00

3 lines
90 B
Bash
Executable File

#!/bin/bash
USE_SQLITE=True DJANGO_SECRET_KEY=dummy SHOPIER_SECRET=dummy python -m pytest