summaryrefslogtreecommitdiff
path: root/tests/gis_tests/gis_migrations/test_operations.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-06-14 16:18:33 +0200
committerClaude Paroz <claude@2xlibre.net>2016-06-18 10:58:02 +0200
commitf7a363ee1d2039824d95f35e54219e09c5af67b0 (patch)
treed0d159c14a151f933faaa6eb0646679bdb614254 /tests/gis_tests/gis_migrations/test_operations.py
parent7def55c3f6716fcfa40a3bd5d0fbb2090588d81e (diff)
downloaddjango-f7a363ee1d2039824d95f35e54219e09c5af67b0.tar.gz
Fixed #26753 -- Made GDAL a required dependency for contrib.gis
Thanks Tim Graham for the review.
Diffstat (limited to 'tests/gis_tests/gis_migrations/test_operations.py')
-rw-r--r--tests/gis_tests/gis_migrations/test_operations.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/gis_tests/gis_migrations/test_operations.py b/tests/gis_tests/gis_migrations/test_operations.py
index a6f89e6106..aa6b13bdda 100644
--- a/tests/gis_tests/gis_migrations/test_operations.py
+++ b/tests/gis_tests/gis_migrations/test_operations.py
@@ -1,9 +1,6 @@
from __future__ import unicode_literals
-from unittest import skipUnless
-
from django.contrib.gis.db.models import fields
-from django.contrib.gis.gdal import HAS_GDAL
from django.core.exceptions import ImproperlyConfigured
from django.db import connection, migrations, models
from django.db.migrations.migration import Migration
@@ -117,7 +114,6 @@ class OperationTests(TransactionTestCase):
self.assertSpatialIndexExists('gis_neighborhood', 'heatmap')
@skipIfDBFeature('supports_raster')
- @skipUnless(HAS_GDAL, 'A different error is raised if GDAL is not installed.')
def test_create_raster_model_on_db_without_raster_support(self):
"""
Test creating a model with a raster field on a db without raster support.
@@ -127,7 +123,6 @@ class OperationTests(TransactionTestCase):
self.set_up_test_model(True)
@skipIfDBFeature('supports_raster')
- @skipUnless(HAS_GDAL, 'A different error is raised if GDAL is not installed.')
def test_add_raster_field_on_db_without_raster_support(self):
"""
Test adding a raster field on a db without raster support.