mirror of
https://github.com/django/django.git
synced 2025-11-25 13:13:28 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
parent
9c19aff7c7
commit
7119f40c98
404 changed files with 5944 additions and 2842 deletions
|
|
@ -127,7 +127,10 @@ class ProxyModelTests(TestCase):
|
|||
StatusPerson.objects.get(id__lt=max_id + 1)
|
||||
|
||||
def test_abstract_base_with_model_fields(self):
|
||||
msg = "Abstract base class containing model fields not permitted for proxy model 'NoAbstract'."
|
||||
msg = (
|
||||
"Abstract base class containing model fields not permitted for proxy model "
|
||||
"'NoAbstract'."
|
||||
)
|
||||
with self.assertRaisesMessage(TypeError, msg):
|
||||
|
||||
class NoAbstract(Abstract):
|
||||
|
|
@ -135,7 +138,10 @@ class ProxyModelTests(TestCase):
|
|||
proxy = True
|
||||
|
||||
def test_too_many_concrete_classes(self):
|
||||
msg = "Proxy model 'TooManyBases' has more than one non-abstract model base class."
|
||||
msg = (
|
||||
"Proxy model 'TooManyBases' has more than one non-abstract model base "
|
||||
"class."
|
||||
)
|
||||
with self.assertRaisesMessage(TypeError, msg):
|
||||
|
||||
class TooManyBases(User, Person):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue