mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
parent
f68fa8b45d
commit
9c19aff7c7
1992 changed files with 139577 additions and 96284 deletions
|
@ -3,9 +3,8 @@ from django.test import SimpleTestCase
|
|||
from django.test.utils import isolate_apps
|
||||
|
||||
|
||||
@isolate_apps('invalid_models_tests')
|
||||
@isolate_apps("invalid_models_tests")
|
||||
class CustomFieldTest(SimpleTestCase):
|
||||
|
||||
def test_none_column(self):
|
||||
class NoColumnField(models.AutoField):
|
||||
def db_type(self, connection):
|
||||
|
@ -16,5 +15,5 @@ class CustomFieldTest(SimpleTestCase):
|
|||
field = NoColumnField(primary_key=True, db_column="other_field")
|
||||
other_field = models.IntegerField()
|
||||
|
||||
field = Model._meta.get_field('field')
|
||||
field = Model._meta.get_field("field")
|
||||
self.assertEqual(field.check(), [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue