diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-08 12:09:55 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-08 12:15:38 +0100 |
| commit | 6a682b38e75d4c975b4c4493565a59f1bc14397c (patch) | |
| tree | 0bd9cda550bea26238656d9f120d769e8b41bb9e /tests/invalid_models_tests/test_custom_fields.py | |
| parent | e73ce08888e6f34d3f050377cfd2fbb733be94a9 (diff) | |
[4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
Diffstat (limited to 'tests/invalid_models_tests/test_custom_fields.py')
| -rw-r--r-- | tests/invalid_models_tests/test_custom_fields.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/invalid_models_tests/test_custom_fields.py b/tests/invalid_models_tests/test_custom_fields.py index af14bae569..cfca888bec 100644 --- a/tests/invalid_models_tests/test_custom_fields.py +++ b/tests/invalid_models_tests/test_custom_fields.py @@ -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(), []) |
