(self)
| 477 | INSTALLED_APPS=["migrations"], |
| 478 | ) |
| 479 | def test_check_consistent_history(self): |
| 480 | loader = MigrationLoader(connection=None) |
| 481 | loader.check_consistent_history(connection) |
| 482 | recorder = MigrationRecorder(connection) |
| 483 | self.record_applied(recorder, "migrations", "0002_second") |
| 484 | msg = ( |
| 485 | "Migration migrations.0002_second is applied before its dependency " |
| 486 | "migrations.0001_initial on database 'default'." |
| 487 | ) |
| 488 | with self.assertRaisesMessage(InconsistentMigrationHistory, msg): |
| 489 | loader.check_consistent_history(connection) |
| 490 | |
| 491 | @override_settings( |
| 492 | MIGRATION_MODULES={"migrations": "migrations.test_migrations_squashed_extra"}, |
nothing calls this directly
no test coverage detected