summaryrefslogtreecommitdiff
path: root/tests/gis_tests/layermap
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-01-02 18:18:19 -0500
committerGitHub <noreply@github.com>2019-01-02 18:18:19 -0500
commit0004daa536890fdb389c895baaa21bea6a1f7073 (patch)
tree9f66a0ce81466d8fa7043e70f0d96b9cc3350473 /tests/gis_tests/layermap
parent5bbf31634faad13658dc7bcaeb8139d8625e4349 (diff)
downloaddjango-0004daa536890fdb389c895baaa21bea6a1f7073.tar.gz
Used 4 space hanging indent for dictionaries.
Thanks Mariusz Felisiak for auditing.
Diffstat (limited to 'tests/gis_tests/layermap')
-rw-r--r--tests/gis_tests/layermap/models.py33
-rw-r--r--tests/gis_tests/layermap/tests.py14
2 files changed, 25 insertions, 22 deletions
diff --git a/tests/gis_tests/layermap/models.py b/tests/gis_tests/layermap/models.py
index de1dd6c944..7c029a0ee8 100644
--- a/tests/gis_tests/layermap/models.py
+++ b/tests/gis_tests/layermap/models.py
@@ -77,18 +77,21 @@ co_mapping = {
'mpoly': 'MULTIPOLYGON', # Will convert POLYGON features into MULTIPOLYGONS.
}
-cofeat_mapping = {'name': 'Name',
- 'poly': 'POLYGON',
- }
-
-city_mapping = {'name': 'Name',
- 'population': 'Population',
- 'density': 'Density',
- 'dt': 'Created',
- 'point': 'POINT',
- }
-
-inter_mapping = {'name': 'Name',
- 'length': 'Length',
- 'path': 'LINESTRING',
- }
+cofeat_mapping = {
+ 'name': 'Name',
+ 'poly': 'POLYGON',
+}
+
+city_mapping = {
+ 'name': 'Name',
+ 'population': 'Population',
+ 'density': 'Density',
+ 'dt': 'Created',
+ 'point': 'POINT',
+}
+
+inter_mapping = {
+ 'name': 'Name',
+ 'length': 'Length',
+ 'path': 'LINESTRING',
+}
diff --git a/tests/gis_tests/layermap/tests.py b/tests/gis_tests/layermap/tests.py
index a1b288eafa..460d6f6a4d 100644
--- a/tests/gis_tests/layermap/tests.py
+++ b/tests/gis_tests/layermap/tests.py
@@ -261,13 +261,13 @@ class LayerMapTest(TestCase):
def test_model_inheritance(self):
"Tests LayerMapping on inherited models. See #12093."
- icity_mapping = {'name': 'Name',
- 'population': 'Population',
- 'density': 'Density',
- 'point': 'POINT',
- 'dt': 'Created',
- }
-
+ icity_mapping = {
+ 'name': 'Name',
+ 'population': 'Population',
+ 'density': 'Density',
+ 'point': 'POINT',
+ 'dt': 'Created',
+ }
# Parent model has geometry field.
lm1 = LayerMapping(ICity1, city_shp, icity_mapping)
lm1.save()