0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00

Added test for verbosity option on rebuild_references_index

This commit is contained in:
4the4ryushin 2022-11-04 22:33:33 +05:30 committed by Matt Westcott
parent 2de166c7e0
commit 65b2cb357a

View File

@ -1,4 +1,7 @@
from io import StringIO
from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.models import ContentType
from django.core import management
from django.test import TestCase from django.test import TestCase
from wagtail.images import get_image_model from wagtail.images import get_image_model
@ -159,3 +162,12 @@ class TestCreateOrUpdateForObject(TestCase):
), ),
self.expected_references, self.expected_references,
) )
def test_rebuild_references_index_no_verbosity(self):
stdout = StringIO()
management.call_command(
"rebuild_references_index",
verbosity=0,
stdout=stdout,
)
self.assertFalse(stdout.read())