diff options
Diffstat (limited to 'tests/bash_completion')
| -rw-r--r-- | tests/bash_completion/management/commands/test_command.py | 3 | ||||
| -rw-r--r-- | tests/bash_completion/tests.py | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/bash_completion/management/commands/test_command.py b/tests/bash_completion/management/commands/test_command.py index d2adf91e5a..91ec36c2af 100644 --- a/tests/bash_completion/management/commands/test_command.py +++ b/tests/bash_completion/management/commands/test_command.py @@ -3,8 +3,7 @@ from django.core.management.base import BaseCommand class Command(BaseCommand): def add_arguments(self, parser): - parser.add_argument("--list", action="store_true", dest="list", - help="Print all options") + parser.add_argument("--list", action="store_true", dest="list", help="Print all options") def handle(self, *args, **options): pass diff --git a/tests/bash_completion/tests.py b/tests/bash_completion/tests.py index b12a0cecdc..1d35e1f28e 100644 --- a/tests/bash_completion/tests.py +++ b/tests/bash_completion/tests.py @@ -97,7 +97,8 @@ class BashCompletionTests(unittest.TestCase): "Application names will be autocompleted for an AppCommand" self._user_input('django-admin sqlmigrate a') output = self._run_autocomplete() - a_labels = sorted(app_config.label - for app_config in apps.get_app_configs() - if app_config.label.startswith('a')) + a_labels = sorted( + app_config.label for app_config in apps.get_app_configs() + if app_config.label.startswith('a') + ) self.assertEqual(output, a_labels) |
