mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f68fa8b45d
commit
9c19aff7c7
@@ -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(), [])
|
||||
|
||||
Reference in New Issue
Block a user