1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

gis: Fixed #5437 with patch from rcoup.

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2007-09-14 22:46:41 +00:00
parent 57135b1cb7
commit d1d5cf7aa2

View File

@ -1,15 +1,24 @@
from copy import copy
from unittest import TestSuite, TextTestRunner
import sys
# Tests that do not require setting up and tearing down a spatial database.
test_suite_names = ['test_gdal_driver',
'test_gdal_ds',
'test_gdal_geom',
'test_gdal_srs',
'test_geos',
'test_measure',
'test_spatialrefsys',
]
test_suite_names = [
'test_geos',
'test_measure',
]
try:
# GDAL tests
import django.contrib.gis.gdal
test_suite_names += [
'test_gdal_driver',
'test_gdal_ds',
'test_gdal_geom',
'test_gdal_srs',
'test_spatialrefsys',
]
except ImportError, e:
print >>sys.stderr, "GDAL not available - no GDAL tests will be run."
test_models = ['geoapp']