Django: Cleaning Up the Test Suite's Blind Spots

Today's merges centered on fixing tests that were quietly passing for the wrong reasons, plus a long-standing gap in migration tracking for unmanaged models. The common thread: assertions and DOM checks that looked correct but weren't actually testing what they claimed to.

Duration: PT2M22S

Episode overview

This episode is a short developer briefing from Django.

It explains recent repository work in plain language.

  • Show: Django
  • Published: 2026-07-10T13:05:03Z
  • Audio duration: PT2M22S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning. It's July 10th, and today's Django activity is a story about tests that lied to us.

Three separate pull requests from Varun Kasyap fixed admin test suite bugs that shared the same root cause: checks that appeared to pass but weren't verifying real behavior. PR 21527 fixed an assertion in the pagination test that used assertTrue instead of assertEqual, meaning it could never actually catch a wrong…

Second theme: migrations got more thorough. PR 18651, from hannylicious, closes a long-standing ticket, number 35813, so that unmanaged models now track all changes in migrations, not just creation and deletion. If you're managing schemas outside Django's control, alter operations will now show up in your migration…

Infrastructure got a small but necessary update too. PR 21609 bumped GitHub Actions dependencies, including the upload-artifact action, after Node.js 20 deprecation warnings started showing up in CI runs. Routine, but skipping it risks broken pipelines down the line.

One more item still in progress: PR 21608 is documenting how to add custom validation to admin inlines, clarifying when validation belongs on the model versus a custom inline form. Not yet merged, but…

W…

Nearby episodes from Django

  1. PostgreSQL Query Performance, Triplicate PRs, and Reliability Fixes
  2. Quiet Bugs, Bigger Testing Ambitions
  3. Duplicate Fixes and a Documentation Theme Decision
  4. Correctness Fixes and Documentation Polish
  5. Weekly Recap - Email Safety & Documentation Cleanup
  6. One Ticket, Three Pull Requests
  7. Signed Cookie Crash Fix
  8. Admin Ordering Bug Gets a Duplicate Fix, Docs Get a Cleanup