Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Orchestrates Django test speedups via profiling, safe test settings, database and migration tuning, parallel execution, and CI changes.
Use this skill ↓65% 74%+9 ptsof test cases passed
Passed 17 of 23 test cases with the skill, and 15 of 23 without it.
3 of 3 safety checks passed
Not used yet
Apply these only after measuring. Keep the test suite faithful enough that passing tests still mean production behavior is covered.
| Area | Typical Test Override | Check |
|---|---|---|
| Password hashing | Fast hasher such as MD5 for tests | No test asserts production hash cost |
| Debug mode | DEBUG = False | Debug-specific behavior has separate tests if needed |
| DB serialization | DATABASES["default"]["TEST"]["SERIALIZE"] = False | Suite does not depend on serialized rollback |
| File storage | In-memory or temp-dir storage | File behavior under test still uses a real file when needed |
| Cache | LocMem, Dummy, fake Redis, or per-worker cache | Cache behavior tests use a representative backend |
| Task queues | Eager, sync, or in-memory brokers | Worker integration has separate coverage |
| Instrumentation | Disable debug toolbar, APM, Sentry/Rollbar setup | Error-reporting integration is tested elsewhere |
| Static files | Avoid WhiteNoise startup scans during tests | Static-file behavior has targeted tests |
Use database reuse for repeated local runs:
python manage.py test --keepdb
pytest --reuse-db
pytest --create-db
Force a rebuild after:
Prefer migration squashing over bypassing migrations. Long migration histories slow database creation and increase CI setup time, but disabled migrations can hide production schema behavior.
If a project uses no-migration local shortcuts:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.