Made runtests.py run gis_tests only when using a GIS database backend.

This facilitates other changes like refs #28160.
This commit is contained in:
Tim Graham 2017-05-04 10:14:35 -04:00
parent ec05ff086c
commit 890537253c
27 changed files with 31 additions and 91 deletions

View file

@ -18,7 +18,6 @@ if HAS_GDAL:
from .models import AllOGRFields
@skipUnlessDBFeature("gis_enabled")
class InspectDbTests(TestCase):
def test_geom_columns(self):
"""
@ -61,7 +60,6 @@ class InspectDbTests(TestCase):
self.assertIn('poly = models.GeometryField(', output)
@skipUnlessDBFeature("gis_enabled")
@modify_settings(
INSTALLED_APPS={'append': 'django.contrib.gis'},
)