mirror of
https://github.com/django/django.git
synced 2025-04-22 00:04:43 +00:00
[1.7.x] Refs #24075 -- Silenced needless call_command output while running tests
Thanks Tim Graham for the report Backport of 51dc617b21e67636d96cf645905797a4d6ff4bf0 from master
This commit is contained in:
parent
327703c067
commit
b419bd3843
@ -521,6 +521,6 @@ class MigrateTests(TestCase):
|
||||
INSTALLED_APPS=["django.contrib.auth", "django.contrib.contenttypes"],
|
||||
MIGRATION_MODULES={'auth': 'django.contrib.auth.migrations'},
|
||||
):
|
||||
call_command("migrate", "auth", "zero", stdout=six.StringIO())
|
||||
call_command("migrate", "auth", "zero", verbosity=0)
|
||||
finally:
|
||||
call_command("migrate", stdout=six.StringIO())
|
||||
call_command("migrate", verbosity=0)
|
||||
|
@ -259,6 +259,6 @@ class MigrateTests(TestCase):
|
||||
INSTALLED_APPS=["django.contrib.contenttypes"],
|
||||
MIGRATION_MODULES={'contenttypes': 'django.contrib.contenttypes.migrations'},
|
||||
):
|
||||
call_command("migrate", "contenttypes", "zero", stdout=six.StringIO())
|
||||
call_command("migrate", "contenttypes", "zero", verbosity=0)
|
||||
finally:
|
||||
call_command("migrate", stdout=six.StringIO())
|
||||
call_command("migrate", verbosity=0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user