Fixed #22749: Making SQL management commands migration aware.

This commit is contained in:
Víðir Valberg Guðmundsson 2014-05-29 23:03:10 +02:00 committed by Andrew Godwin
parent 6fd455adfc
commit f70f669941
7 changed files with 72 additions and 3 deletions

View file

@ -20,7 +20,7 @@ class SQLCommandsMigrationsTestCase(TestCase):
def test_sql_delete(self):
app_config = apps.get_app_config('commands_sql_migrations')
with self.assertRaises(CommandError):
sql_delete(app_config, no_style(), connections[DEFAULT_DB_ALIAS])
sql_delete(app_config, no_style(), connections[DEFAULT_DB_ALIAS], close_connection=False)
def test_sql_indexes(self):
app_config = apps.get_app_config('commands_sql_migrations')