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:
@@ -1527,7 +1527,7 @@ class ComplexClashTests(SimpleTestCase):
|
||||
class M2mThroughFieldsTests(SimpleTestCase):
|
||||
def test_m2m_field_argument_validation(self):
|
||||
"""
|
||||
Tests that ManyToManyField accepts the ``through_fields`` kwarg
|
||||
ManyToManyField accepts the ``through_fields`` kwarg
|
||||
only if an intermediary table is specified.
|
||||
"""
|
||||
class Fan(models.Model):
|
||||
@@ -1538,7 +1538,7 @@ class M2mThroughFieldsTests(SimpleTestCase):
|
||||
|
||||
def test_invalid_order(self):
|
||||
"""
|
||||
Tests that mixing up the order of link fields to ManyToManyField.through_fields
|
||||
Mixing up the order of link fields to ManyToManyField.through_fields
|
||||
triggers validation errors.
|
||||
"""
|
||||
class Fan(models.Model):
|
||||
@@ -1572,7 +1572,7 @@ class M2mThroughFieldsTests(SimpleTestCase):
|
||||
|
||||
def test_invalid_field(self):
|
||||
"""
|
||||
Tests that providing invalid field names to ManyToManyField.through_fields
|
||||
Providing invalid field names to ManyToManyField.through_fields
|
||||
triggers validation errors.
|
||||
"""
|
||||
class Fan(models.Model):
|
||||
@@ -1610,7 +1610,7 @@ class M2mThroughFieldsTests(SimpleTestCase):
|
||||
|
||||
def test_explicit_field_names(self):
|
||||
"""
|
||||
Tests that if ``through_fields`` kwarg is given, it must specify both
|
||||
If ``through_fields`` kwarg is given, it must specify both
|
||||
link fields of the intermediary table.
|
||||
"""
|
||||
class Fan(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user