summaryrefslogtreecommitdiff
path: root/tests/gis_tests/layermap/models.py
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2022-02-03 20:24:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch)
treef0506b668a013d0063e5fba3dbf4863b466713ba /tests/gis_tests/layermap/models.py
parentf68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff)
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/gis_tests/layermap/models.py')
-rw-r--r--tests/gis_tests/layermap/models.py46
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/gis_tests/layermap/models.py b/tests/gis_tests/layermap/models.py
index b488eedffe..953332539a 100644
--- a/tests/gis_tests/layermap/models.py
+++ b/tests/gis_tests/layermap/models.py
@@ -25,7 +25,7 @@ class CountyFeat(NamedModel):
class City(NamedModel):
- name_txt = models.TextField(default='')
+ name_txt = models.TextField(default="")
name_short = models.CharField(max_length=5)
population = models.IntegerField()
density = models.DecimalField(max_digits=7, decimal_places=1)
@@ -33,7 +33,7 @@ class City(NamedModel):
point = models.PointField()
class Meta:
- app_label = 'layermap'
+ app_label = "layermap"
class Interstate(NamedModel):
@@ -41,7 +41,7 @@ class Interstate(NamedModel):
path = models.LineStringField()
class Meta:
- app_label = 'layermap'
+ app_label = "layermap"
# Same as `City` above, but for testing model inheritance.
@@ -91,37 +91,37 @@ class DoesNotAllowNulls(models.Model):
# Mapping dictionaries for the models above.
co_mapping = {
- 'name': 'Name',
+ "name": "Name",
# ForeignKey's use another mapping dictionary for the _related_ Model (State in this case).
- 'state': {'name': 'State'},
- 'mpoly': 'MULTIPOLYGON', # Will convert POLYGON features into MULTIPOLYGONS.
+ "state": {"name": "State"},
+ "mpoly": "MULTIPOLYGON", # Will convert POLYGON features into MULTIPOLYGONS.
}
cofeat_mapping = {
- 'name': 'Name',
- 'poly': 'POLYGON',
+ "name": "Name",
+ "poly": "POLYGON",
}
city_mapping = {
- 'name': 'Name',
- 'population': 'Population',
- 'density': 'Density',
- 'dt': 'Created',
- 'point': 'POINT',
+ "name": "Name",
+ "population": "Population",
+ "density": "Density",
+ "dt": "Created",
+ "point": "POINT",
}
inter_mapping = {
- 'name': 'Name',
- 'length': 'Length',
- 'path': 'LINESTRING',
+ "name": "Name",
+ "length": "Length",
+ "path": "LINESTRING",
}
has_nulls_mapping = {
- 'geom': 'POLYGON',
- 'uuid': 'uuid',
- 'datetime': 'datetime',
- 'name': 'name',
- 'integer': 'integer',
- 'num': 'num',
- 'boolean': 'boolean',
+ "geom": "POLYGON",
+ "uuid": "uuid",
+ "datetime": "datetime",
+ "name": "name",
+ "integer": "integer",
+ "num": "num",
+ "boolean": "boolean",
}