mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
This commit is contained in:
@@ -485,8 +485,9 @@ class ModelFormsetTest(TestCase):
|
||||
self.assertEqual(poet2.name, 'Vladimir Mayakovsky')
|
||||
|
||||
def test_custom_form(self):
|
||||
""" Test that model_formset respects fields and exclude parameters of
|
||||
custom form
|
||||
"""
|
||||
model_formset_factory() respects fields and exclude parameters of a
|
||||
custom form.
|
||||
"""
|
||||
class PostForm1(forms.ModelForm):
|
||||
class Meta:
|
||||
@@ -508,8 +509,7 @@ class ModelFormsetTest(TestCase):
|
||||
|
||||
def test_custom_queryset_init(self):
|
||||
"""
|
||||
Test that a queryset can be overridden in the __init__ method.
|
||||
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#changing-the-queryset
|
||||
A queryset can be overridden in the formset's __init__() method.
|
||||
"""
|
||||
Author.objects.create(name='Charles Baudelaire')
|
||||
Author.objects.create(name='Paul Verlaine')
|
||||
|
||||
Reference in New Issue
Block a user