mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Add tests for the migrate command and fix a bug they exposed
This commit is contained in:
parent
162f7b938f
commit
00276e0414
6 changed files with 84 additions and 37 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue