{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/9"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Tests Django schema and data migrations, including forward/backward execution, ordering validation, and migration dependencies.","skillfed_tags":["django-testing","migration-validation","pytest-plugin"],"use_cases":["Verify that a data migration correctly transforms existing records without loss or corruption.","Test that a schema migration can be safely rolled back and re-applied without errors.","Validate that all migrations in an app are in the correct order with correct dependencies.","Ensure a new field migration applies the correct default values to existing rows.","Confirm that a migration removing a column doesn't break dependent migrations."],"what_it_does":"django-test-migrations is a testing library that lets you write automated tests for Django database migrations. It provides a Migrator class to apply migrations in isolation, inspect database state before and after, and verify that data is preserved correctly. It also validates migration ordering and dependencies, and detects rollback issues. The library integrates with pytest (via fixtures and markers) and unittest (via a base test case), and supports factory_boy for creating test data.\n\nYou use it by applying an initial migration to set up a before-state, then applying the migration you want to test, then asserting on the resulting model structure and data. This catches bugs in complex schema or data transformations that unit tests alone won't catch. It's particularly useful when migrations modify existing data, add constraints, or change relationships\u2014situations where silent data corruption is a real risk.","worth_installing":"Yes. If you maintain Django projects with non-trivial migrations (data transformations, schema changes, rollbacks), this package is worth installing. It has low install friction, active maintenance, no known vulnerabilities, a permissive license, and solves a real problem\u2014catching migration bugs before production. Start with it if you're already using pytest or unittest."},"id":"django-test-migrations","links":{"html":"https://skillfed.io/packages/django-test-migrations","md":"https://skillfed.io/packages/django-test-migrations.md","pypi":"https://pypi.org/project/django-test-migrations/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-05","license_spdx":"MIT","license_treatment":"permissive","name":"django-test-migrations","python_support":"supports_current","summary":"Test django schema and data migrations, including ordering"},"popularity":{"monthly_downloads":658190,"position":5470,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.6.0"}
