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:
parent
2de166c7e0
commit
65b2cb357a
@ -1,4 +1,7 @@
|
||||
from io import StringIO
|
||||
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.core import management
|
||||
from django.test import TestCase
|
||||
|
||||
from wagtail.images import get_image_model
|
||||
@ -159,3 +162,12 @@ class TestCreateOrUpdateForObject(TestCase):
|
||||
),
|
||||
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())
|
||||
|
Loading…
Reference in New Issue
Block a user