Isolated migrations.test_commands.MigrateTests.test_migrate_plan.
This commit is contained in:
parent
2839659b42
commit
05186c03a3
|
@ -327,6 +327,7 @@ class MigrateTests(MigrationTestBase):
|
|||
" Raw SQL operation -> ['SELECT * FROM migrations_author']\n",
|
||||
out.getvalue()
|
||||
)
|
||||
try:
|
||||
# Migrate to the third migration.
|
||||
call_command('migrate', 'migrations', '0003', verbosity=0)
|
||||
out = io.StringIO()
|
||||
|
@ -370,6 +371,7 @@ class MigrateTests(MigrationTestBase):
|
|||
' Raw SQL operation -> IRREVERSIBLE\n',
|
||||
out.getvalue()
|
||||
)
|
||||
finally:
|
||||
# Cleanup by unmigrating everything: fake the irreversible, then
|
||||
# migrate all to zero.
|
||||
call_command('migrate', 'migrations', '0003', fake=True, verbosity=0)
|
||||
|
|
Loading…
Reference in New Issue