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
|
@ -4,12 +4,11 @@ from django.contrib.gis import forms
|
|||
from django.contrib.gis.forms import BaseGeometryWidget
|
||||
from django.contrib.gis.geos import GEOSGeometry
|
||||
from django.forms import ValidationError
|
||||
from django.test import SimpleTestCase, override_settings, skipUnlessDBFeature
|
||||
from django.test import SimpleTestCase, override_settings
|
||||
from django.test.utils import patch_logger
|
||||
from django.utils.html import escape
|
||||
|
||||
|
||||
@skipUnlessDBFeature("gis_enabled")
|
||||
class GeometryFieldTest(SimpleTestCase):
|
||||
|
||||
def test_init(self):
|
||||
|
@ -138,7 +137,6 @@ class GeometryFieldTest(SimpleTestCase):
|
|||
)
|
||||
|
||||
|
||||
@skipUnlessDBFeature("gis_enabled")
|
||||
class SpecializedFieldTest(SimpleTestCase):
|
||||
def setUp(self):
|
||||
self.geometries = {
|
||||
|
@ -310,7 +308,6 @@ class SpecializedFieldTest(SimpleTestCase):
|
|||
self.assertFalse(GeometryForm(data={'g': invalid.wkt}).is_valid())
|
||||
|
||||
|
||||
@skipUnlessDBFeature("gis_enabled")
|
||||
class OSMWidgetTest(SimpleTestCase):
|
||||
def setUp(self):
|
||||
self.geometries = {
|
||||
|
@ -351,7 +348,6 @@ class OSMWidgetTest(SimpleTestCase):
|
|||
rendered)
|
||||
|
||||
|
||||
@skipUnlessDBFeature("gis_enabled")
|
||||
class GeometryWidgetTests(SimpleTestCase):
|
||||
|
||||
def test_get_context_attrs(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue