diff --git a/tests/migrations/test_executor.py b/tests/migrations/test_executor.py
index 01b31a6..71c158a 100644
a
|
b
|
class ExecutorTests(MigrationTestBase):
|
126 | 126 | migrations_apps = executor.loader.project_state(("migrations", "0001_initial")).apps |
127 | 127 | Editor = migrations_apps.get_model("migrations", "Editor") |
128 | 128 | self.assertFalse(Editor.objects.exists()) |
| 129 | executor.migrate([("migrations", None)]) |
129 | 130 | |
130 | 131 | @override_settings(MIGRATION_MODULES={ |
131 | 132 | "migrations": "migrations.test_migrations", |
… |
… |
class ExecutorTests(MigrationTestBase):
|
512 | 513 | ('mutate_state_a', None), |
513 | 514 | ]) |
514 | 515 | self.assertIn('added', dict(state.models['mutate_state_b', 'b'].fields)) |
| 516 | state = executor.migrate([ |
| 517 | ('mutate_state_b', None), |
| 518 | ]) |
515 | 519 | |
516 | 520 | @override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"}) |
517 | 521 | def test_process_callback(self): |
… |
… |
class ExecutorTests(MigrationTestBase):
|
590 | 594 | with connection.schema_editor() as editor: |
591 | 595 | editor.execute(editor.sql_delete_table % {"table": "book_app_book"}) |
592 | 596 | editor.execute(editor.sql_delete_table % {"table": "author_app_author"}) |
| 597 | MigrationRecorder(connection).migration_qs.filter( |
| 598 | app__in=('author_app', 'book_app'), |
| 599 | ).delete() |
593 | 600 | self.assertTableNotExists("author_app_author") |
594 | 601 | self.assertTableNotExists("book_app_book") |
595 | 602 | |
diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py
index b464209..c81a38a 100644
a
|
b
|
class LoaderTests(TestCase):
|
399 | 399 | ) |
400 | 400 | with self.assertRaisesMessage(InconsistentMigrationHistory, msg): |
401 | 401 | loader.check_consistent_history(connection) |
| 402 | recorder.record_unapplied('migrations', '0002_second') |
402 | 403 | |
403 | 404 | @override_settings( |
404 | 405 | MIGRATION_MODULES={'migrations': 'migrations.test_migrations_squashed_extra'}, |
diff --git a/tests/migrations/test_migrations_atomic_operation/0001_initial.py b/tests/migrations/test_migrations_atomic_operation/0001_initial.py
index 11bd2f7..495150f 100644
a
|
b
|
class Migration(migrations.Migration):
|
21 | 21 | ("name", models.CharField(primary_key=True, max_length=255)), |
22 | 22 | ], |
23 | 23 | ), |
24 | | migrations.RunPython(raise_error, atomic=True), |
| 24 | migrations.RunPython(raise_error, reverse_code=migrations.RunPython.noop, atomic=True), |
25 | 25 | ] |