mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed inconsistent formatting in tests/modeladmin/test_checks.py.
This commit is contained in:
parent
09f1f0387b
commit
a480ef89ad
@ -617,7 +617,8 @@ class ListFilterTests(CheckTestCase):
|
||||
self.assertIsInvalid(
|
||||
TestModelAdmin, ValidationTestModel,
|
||||
"The value of 'list_filter[0]' must inherit from 'ListFilter'.",
|
||||
'admin.E113')
|
||||
'admin.E113'
|
||||
)
|
||||
|
||||
def test_not_filter_again(self):
|
||||
class RandomClass:
|
||||
@ -921,7 +922,8 @@ class InlinesCheckTests(CheckTestCase):
|
||||
self.assertIsInvalidRegexp(
|
||||
TestModelAdmin, ValidationTestModel,
|
||||
r"'.*\.ValidationTestInline' must have a 'model' attribute\.",
|
||||
'admin.E105')
|
||||
'admin.E105'
|
||||
)
|
||||
|
||||
def test_invalid_model_type(self):
|
||||
class SomethingBad:
|
||||
|
Loading…
Reference in New Issue
Block a user