mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Fixed #31546 -- Allowed specifying list of tags in Command.requires_system_checks.
This commit is contained in:
parent
a4e6030904
commit
c60524c658
30 changed files with 156 additions and 41 deletions
|
@ -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!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue