mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Add tests for the migrate command and fix a bug they exposed
This commit is contained in:
@@ -20,6 +20,7 @@ class ExecutorTests(TransactionTestCase):
|
||||
Tests running a simple set of migrations.
|
||||
"""
|
||||
executor = MigrationExecutor(connection)
|
||||
executor.recorder.flush()
|
||||
# Let's look at the plan first and make sure it's up to scratch
|
||||
plan = executor.migration_plan([("migrations", "0002_second")])
|
||||
self.assertEqual(
|
||||
|
||||
Reference in New Issue
Block a user