diff options
author | François Freitag <mail@franek.fr> | 2020-05-13 07:12:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 09:12:43 +0200 |
commit | c8bebbd541d601ed283617166609b37d2ccd7f96 (patch) | |
tree | be99fb893bad2fe22899aa6364f3790e739b953a /tests/swappable_models | |
parent | 7cd88b3fece1c17f5ee905c78222a28594fee215 (diff) | |
download | django-c8bebbd541d601ed283617166609b37d2ccd7f96.tar.gz |
Disabled management commands output with verbosity 0 in various tests.
Diffstat (limited to 'tests/swappable_models')
-rw-r--r-- | tests/swappable_models/tests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/swappable_models/tests.py b/tests/swappable_models/tests.py index bdf681dd87..b1bcaa9f70 100644 --- a/tests/swappable_models/tests.py +++ b/tests/swappable_models/tests.py @@ -1,5 +1,3 @@ -from io import StringIO - from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from django.core import management @@ -26,8 +24,7 @@ class SwappableModelTests(TestCase): ContentType.objects.filter(app_label='swappable_models').delete() # Re-run migrate. This will re-build the permissions and content types. - new_io = StringIO() - management.call_command('migrate', interactive=False, stdout=new_io) + management.call_command('migrate', interactive=False, verbosity=0) # Content types and permissions exist for the swapped model, # but not for the swappable model. |