mirror of
https://github.com/django/django.git
synced 2025-07-28 15:44:20 +00:00
Fixed #22749: Making SQL management commands migration aware.
This commit is contained in:
parent
6fd455adfc
commit
f70f669941
7 changed files with 72 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue