1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #31546 -- Allowed specifying list of tags in Command.requires_system_checks.

This commit is contained in:
Hasan Ramezani
2020-05-14 00:00:41 +02:00
committed by Carlton Gibson
parent a4e6030904
commit c60524c658
30 changed files with 156 additions and 41 deletions

View File

@@ -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!")