This is to ensure that code modifications by django-upgrade don't result in forgotten migrations.
Adam has a blog post about how do do that (see the link above) so this should be a good first-time contribution if anyone is tempted. I would place the test in djangoproject/tests.py since it's not tied to a specific app.
We use
django-upgrade
(with pre-commit) and its author has recommended having a test for pending migrations: https://mastodon.social/@adamchainz@fosstodon.org/112687118840974800This is to ensure that code modifications by
django-upgrade
don't result in forgotten migrations.Adam has a blog post about how do do that (see the link above) so this should be a good first-time contribution if anyone is tempted. I would place the test in
djangoproject/tests.py
since it's not tied to a specific app.