summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-07-09 15:17:26 +0200
committerClaude Paroz <claude@2xlibre.net>2013-07-09 15:17:26 +0200
commitbd563f0f571e7c76b40e8c8d7a0e1f34dcfeb810 (patch)
tree4fa3be3f245c6368725a49800677c07f43b69de6 /django
parent74bc63b1094582e011aded3e8d0fdd82cf623b5b (diff)
Trusted test skipping about gis tests running or not
With the new test discovery system, gis tests are discovered as other tests. They should be properly skipped now when dependencies are missing. So let's stop special casing their inclusion.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/gis/tests/__init__.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/django/contrib/gis/tests/__init__.py b/django/contrib/gis/tests/__init__.py
index 1703f3f1b3..e69de29bb2 100644
--- a/django/contrib/gis/tests/__init__.py
+++ b/django/contrib/gis/tests/__init__.py
@@ -1,30 +0,0 @@
-def geo_apps():
- """
- Returns a list of GeoDjango test applications that reside in
- `django.contrib.gis.tests` that can be used with the current
- database and the spatial libraries that are installed.
- """
- from django.db import connection
- from django.contrib.gis.geos import GEOS_PREPARE
- from django.contrib.gis.gdal import HAS_GDAL
-
- apps = ['geoapp', 'relatedapp']
-
- # No distance queries on MySQL.
- if not connection.ops.mysql:
- apps.append('distapp')
-
- # Test geography support with PostGIS 1.5+.
- if connection.ops.postgis and connection.ops.geography:
- apps.append('geogapp')
-
- # The following GeoDjango test apps depend on GDAL support.
- if HAS_GDAL:
- # Geographic admin, LayerMapping, and ogrinspect test apps
- # all require GDAL.
- apps.extend(['geoadmin', 'layermap', 'inspectapp'])
-
- # 3D apps use LayerMapping, which uses GDAL and require GEOS 3.1+.
- if connection.ops.postgis and GEOS_PREPARE:
- apps.append('geo3d')
- return [('django.contrib.gis.tests', app) for app in apps]