mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #31546 -- Allowed specifying list of tags in Command.requires_system_checks.
This commit is contained in:
committed by
Carlton Gibson
parent
a4e6030904
commit
c60524c658
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user