mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
This commit is contained in:
@@ -422,7 +422,7 @@ class GenericInlineModelAdminTest(SimpleTestCase):
|
||||
|
||||
def test_custom_form_meta_exclude_with_readonly(self):
|
||||
"""
|
||||
Ensure that the custom ModelForm's `Meta.exclude` is respected when
|
||||
The custom ModelForm's `Meta.exclude` is respected when
|
||||
used in conjunction with `GenericInlineModelAdmin.readonly_fields`
|
||||
and when no `ModelAdmin.exclude` is defined.
|
||||
"""
|
||||
@@ -449,7 +449,7 @@ class GenericInlineModelAdminTest(SimpleTestCase):
|
||||
|
||||
def test_custom_form_meta_exclude(self):
|
||||
"""
|
||||
Ensure that the custom ModelForm's `Meta.exclude` is respected by
|
||||
The custom ModelForm's `Meta.exclude` is respected by
|
||||
`GenericInlineModelAdmin.get_formset`, and overridden if
|
||||
`ModelAdmin.exclude` or `GenericInlineModelAdmin.exclude` are defined.
|
||||
Refs #15907.
|
||||
@@ -494,7 +494,7 @@ class GenericInlineModelAdminTest(SimpleTestCase):
|
||||
['description', 'keywords', 'id', 'DELETE'])
|
||||
|
||||
def test_get_fieldsets(self):
|
||||
# Test that get_fieldsets is called when figuring out form fields.
|
||||
# get_fieldsets is called when figuring out form fields.
|
||||
# Refs #18681.
|
||||
class MediaForm(ModelForm):
|
||||
class Meta:
|
||||
@@ -515,7 +515,7 @@ class GenericInlineModelAdminTest(SimpleTestCase):
|
||||
|
||||
def test_get_formsets_with_inlines_returns_tuples(self):
|
||||
"""
|
||||
Ensure that get_formsets_with_inlines() returns the correct tuples.
|
||||
get_formsets_with_inlines() returns the correct tuples.
|
||||
"""
|
||||
class MediaForm(ModelForm):
|
||||
class Meta:
|
||||
|
||||
Reference in New Issue
Block a user