| 1 | """ |
| 2 | Tests that migrations are not missing |
| 3 | """ |
| 4 | |
| 5 | from django.core.management import call_command |
| 6 | |
| 7 | import pytest |
| 8 | |
| 9 | |
| 10 | @pytest.mark.django_db |
| 11 | def test_no_missing_migrations(): |
| 12 | """Check no model changes have been made since the last `./manage.py makemigrations`. |
| 13 | """ |
| 14 | call_command("makemigrations", check=True, dry_run=True) |