diff options
author | Hasan Ramezani <hasan.r67@gmail.com> | 2020-05-14 00:00:41 +0200 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2020-05-21 12:34:54 +0200 |
commit | c60524c658f197f645b638f9bcc553103bfe2630 (patch) | |
tree | 46c3f2c654626caddbd2764b195adf2fcb4a21fa /tests/admin_scripts | |
parent | a4e6030904df63b3f10aa0729b86dc6942b0458e (diff) | |
download | django-c60524c658f197f645b638f9bcc553103bfe2630.tar.gz |
Fixed #31546 -- Allowed specifying list of tags in Command.requires_system_checks.
Diffstat (limited to 'tests/admin_scripts')
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/admin_scripts/management/commands/app_command.py b/tests/admin_scripts/management/commands/app_command.py index 7f2aff522c..e5272dd6be 100644 --- a/tests/admin_scripts/management/commands/app_command.py +++ b/tests/admin_scripts/management/commands/app_command.py @@ -3,7 +3,7 @@ from django.core.management.base import AppCommand class Command(AppCommand): help = 'Test Application-based commands' - requires_system_checks = False + requires_system_checks = [] def handle_app_config(self, app_config, **options): print('EXECUTE:AppCommand name=%s, options=%s' % (app_config.name, sorted(options.items()))) diff --git a/tests/admin_scripts/management/commands/base_command.py b/tests/admin_scripts/management/commands/base_command.py index 56ab664f8a..940f04d018 100644 --- a/tests/admin_scripts/management/commands/base_command.py +++ b/tests/admin_scripts/management/commands/base_command.py @@ -3,7 +3,7 @@ from django.core.management.base import BaseCommand class Command(BaseCommand): help = 'Test basic commands' - requires_system_checks = False + requires_system_checks = [] def add_arguments(self, parser): parser.add_argument('args', nargs='*') diff --git a/tests/admin_scripts/management/commands/label_command.py b/tests/admin_scripts/management/commands/label_command.py index 5bffeb3ae2..981b88ade4 100644 --- a/tests/admin_scripts/management/commands/label_command.py +++ b/tests/admin_scripts/management/commands/label_command.py @@ -3,7 +3,7 @@ from django.core.management.base import LabelCommand class Command(LabelCommand): help = "Test Label-based commands" - requires_system_checks = False + requires_system_checks = [] def handle_label(self, label, **options): print('EXECUTE:LabelCommand label=%s, options=%s' % (label, sorted(options.items()))) diff --git a/tests/admin_scripts/management/commands/noargs_command.py b/tests/admin_scripts/management/commands/noargs_command.py index c95f7c1844..65ee370ab7 100644 --- a/tests/admin_scripts/management/commands/noargs_command.py +++ b/tests/admin_scripts/management/commands/noargs_command.py @@ -3,7 +3,7 @@ from django.core.management.base import BaseCommand class Command(BaseCommand): help = "Test No-args commands" - requires_system_checks = False + requires_system_checks = [] def handle(self, **options): print('EXECUTE: noargs_command options=%s' % sorted(options.items())) diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index fac1c99c97..47efe0bdd0 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1395,7 +1395,7 @@ class ManageTestserver(SimpleTestCase): # the commands are correctly parsed and processed. ########################################################################## class ColorCommand(BaseCommand): - requires_system_checks = False + requires_system_checks = [] def handle(self, *args, **options): self.stdout.write('Hello, world!', self.style.ERROR) @@ -1541,7 +1541,7 @@ class CommandTypes(AdminScriptTestCase): def test_custom_stdout(self): class Command(BaseCommand): - requires_system_checks = False + requires_system_checks = [] def handle(self, *args, **options): self.stdout.write("Hello, World!") @@ -1558,7 +1558,7 @@ class CommandTypes(AdminScriptTestCase): def test_custom_stderr(self): class Command(BaseCommand): - requires_system_checks = False + requires_system_checks = [] def handle(self, *args, **options): self.stderr.write("Hello, World!") |