mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
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:
parent
ec05ff086c
commit
890537253c
27 changed files with 31 additions and 91 deletions
|
@ -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'},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue