Fixed inconsistent formatting in tests/modeladmin/test_checks.py.

This commit is contained in:
Tim Graham 2018-04-16 13:35:40 -04:00
parent 09f1f0387b
commit a480ef89ad
1 changed files with 4 additions and 2 deletions

View File

@ -617,7 +617,8 @@ class ListFilterTests(CheckTestCase):
self.assertIsInvalid( self.assertIsInvalid(
TestModelAdmin, ValidationTestModel, TestModelAdmin, ValidationTestModel,
"The value of 'list_filter[0]' must inherit from 'ListFilter'.", "The value of 'list_filter[0]' must inherit from 'ListFilter'.",
'admin.E113') 'admin.E113'
)
def test_not_filter_again(self): def test_not_filter_again(self):
class RandomClass: class RandomClass:
@ -921,7 +922,8 @@ class InlinesCheckTests(CheckTestCase):
self.assertIsInvalidRegexp( self.assertIsInvalidRegexp(
TestModelAdmin, ValidationTestModel, TestModelAdmin, ValidationTestModel,
r"'.*\.ValidationTestInline' must have a 'model' attribute\.", r"'.*\.ValidationTestInline' must have a 'model' attribute\.",
'admin.E105') 'admin.E105'
)
def test_invalid_model_type(self): def test_invalid_model_type(self):
class SomethingBad: class SomethingBad: