1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +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:
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

@@ -4,7 +4,6 @@ from django.contrib.gis.db import models
class SimpleModel(models.Model):
class Meta:
abstract = True
required_db_features = ['gis_enabled']
class Location(SimpleModel):

View File

@@ -12,7 +12,6 @@ from .models import (
)
@skipUnlessDBFeature("gis_enabled")
class RelatedGeoModelTest(TestCase):
fixtures = ['initial']