From 321e94fa41b121f65c02119c02098df327bbd569 Mon Sep 17 00:00:00 2001 From: za Date: Thu, 27 Oct 2016 14:53:39 +0700 Subject: Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. --- tests/admin_checks/tests.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/admin_checks') diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py index 2cf7f66d9d..fa1bcc1518 100644 --- a/tests/admin_checks/tests.py +++ b/tests/admin_checks/tests.py @@ -165,16 +165,15 @@ class SystemChecksTestCase(SimpleTestCase): def test_custom_get_form_with_fieldsets(self): """ - Ensure that the fieldsets checks are skipped when the ModelAdmin.get_form() method + The fieldsets checks are skipped when the ModelAdmin.get_form() method is overridden. - Refs #19445. """ errors = ValidFormFieldsets(Song, AdminSite()).check() self.assertEqual(errors, []) def test_fieldsets_fields_non_tuple(self): """ - Tests for a tuple/list for the first fieldset's fields. + The first fieldset's fields must be a list/tuple. """ class NotATupleAdmin(admin.ModelAdmin): list_display = ["pk", "title"] @@ -197,7 +196,7 @@ class SystemChecksTestCase(SimpleTestCase): def test_nonfirst_fieldset(self): """ - Tests for a tuple/list for the second fieldset's fields. + The second fieldset's fields must be a list/tuple. """ class NotATupleAdmin(admin.ModelAdmin): fieldsets = [ @@ -309,7 +308,7 @@ class SystemChecksTestCase(SimpleTestCase): def test_generic_inline_model_admin_non_generic_model(self): """ - Ensure that a model without a GenericForeignKey raises problems if it's included + A model without a GenericForeignKey raises problems if it's included in an GenericInlineModelAdmin definition. """ class BookInline(GenericStackedInline): -- cgit v1.3