summaryrefslogtreecommitdiff
path: root/tests/gis_tests/gis_migrations/test_operations.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-04-07 22:04:45 -0400
committerTim Graham <timograham@gmail.com>2016-04-08 10:12:33 -0400
commit92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch)
tree50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/gis_tests/gis_migrations/test_operations.py
parentdf8d8d4292684d6ffa7474f1e201aed486f02b53 (diff)
downloaddjango-92053acbb9160862c3e743a99ed8ccff8d4f8fd6.tar.gz
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/gis_tests/gis_migrations/test_operations.py')
-rw-r--r--tests/gis_tests/gis_migrations/test_operations.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/gis_tests/gis_migrations/test_operations.py b/tests/gis_tests/gis_migrations/test_operations.py
index 680742f41d..e2f5e106d7 100644
--- a/tests/gis_tests/gis_migrations/test_operations.py
+++ b/tests/gis_tests/gis_migrations/test_operations.py
@@ -73,7 +73,7 @@ class OperationTests(TransactionTestCase):
self.assertIn(column, indexes)
def alter_gis_model(self, migration_class, model_name, field_name,
- blank=False, field_class=None):
+ blank=False, field_class=None):
project_state = self.set_up_test_model()
self.current_state = project_state
args = [model_name, field_name]
@@ -90,8 +90,7 @@ class OperationTests(TransactionTestCase):
"""
Test the AddField operation with a geometry-enabled column.
"""
- self.alter_gis_model(migrations.AddField, 'Neighborhood',
- 'path', False, fields.LineStringField)
+ self.alter_gis_model(migrations.AddField, 'Neighborhood', 'path', False, fields.LineStringField)
self.assertColumnExists('gis_neighborhood', 'path')
# Test GeometryColumns when available
@@ -107,8 +106,7 @@ class OperationTests(TransactionTestCase):
"""
Test the AddField operation with a raster-enabled column.
"""
- self.alter_gis_model(migrations.AddField, 'Neighborhood',
- 'heatmap', False, fields.RasterField)
+ self.alter_gis_model(migrations.AddField, 'Neighborhood', 'heatmap', False, fields.RasterField)
self.assertColumnExists('gis_neighborhood', 'heatmap')
# Test spatial indices when available
@@ -140,8 +138,7 @@ class OperationTests(TransactionTestCase):
"""
Should be able to add a GeometryField with blank=True.
"""
- self.alter_gis_model(migrations.AddField, 'Neighborhood',
- 'path', True, fields.LineStringField)
+ self.alter_gis_model(migrations.AddField, 'Neighborhood', 'path', True, fields.LineStringField)
self.assertColumnExists('gis_neighborhood', 'path')
# Test GeometryColumns when available
@@ -157,8 +154,7 @@ class OperationTests(TransactionTestCase):
"""
Should be able to add a RasterField with blank=True.
"""
- self.alter_gis_model(migrations.AddField, 'Neighborhood',
- 'heatmap', True, fields.RasterField)
+ self.alter_gis_model(migrations.AddField, 'Neighborhood', 'heatmap', True, fields.RasterField)
self.assertColumnExists('gis_neighborhood', 'heatmap')
# Test spatial indices when available