diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/gis_tests/test_fields.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/gis_tests/test_fields.py')
| -rw-r--r-- | tests/gis_tests/test_fields.py | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/tests/gis_tests/test_fields.py b/tests/gis_tests/test_fields.py index c9e6833767..933514fee7 100644 --- a/tests/gis_tests/test_fields.py +++ b/tests/gis_tests/test_fields.py @@ -6,7 +6,6 @@ from django.test import SimpleTestCase class FieldsTests(SimpleTestCase): - def test_area_field_deepcopy(self): field = AreaField(None) self.assertEqual(copy.deepcopy(field), field) @@ -20,21 +19,38 @@ class GeometryFieldTests(SimpleTestCase): def test_deconstruct_empty(self): field = GeometryField() *_, kwargs = field.deconstruct() - self.assertEqual(kwargs, {'srid': 4326}) + self.assertEqual(kwargs, {"srid": 4326}) def test_deconstruct_values(self): field = GeometryField( srid=4067, dim=3, geography=True, - extent=(50199.4814, 6582464.0358, -50000.0, 761274.6247, 7799839.8902, 50000.0), + extent=( + 50199.4814, + 6582464.0358, + -50000.0, + 761274.6247, + 7799839.8902, + 50000.0, + ), tolerance=0.01, ) *_, kwargs = field.deconstruct() - self.assertEqual(kwargs, { - 'srid': 4067, - 'dim': 3, - 'geography': True, - 'extent': (50199.4814, 6582464.0358, -50000.0, 761274.6247, 7799839.8902, 50000.0), - 'tolerance': 0.01, - }) + self.assertEqual( + kwargs, + { + "srid": 4067, + "dim": 3, + "geography": True, + "extent": ( + 50199.4814, + 6582464.0358, + -50000.0, + 761274.6247, + 7799839.8902, + 50000.0, + ), + "tolerance": 0.01, + }, + ) |
