Changeset 6240
- Timestamp:
- 09/14/07 17:46:41 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis/django/contrib/gis/tests/__init__.py
r6237 r6240 1 1 from copy import copy 2 2 from unittest import TestSuite, TextTestRunner 3 import sys 3 4 4 5 # Tests that do not require setting up and tearing down a spatial database. 5 test_suite_names = ['test_gdal_driver', 6 'test_gdal_ds', 7 'test_gdal_geom', 8 'test_gdal_srs', 9 'test_geos', 10 'test_measure', 11 'test_spatialrefsys', 12 ] 6 test_suite_names = [ 7 'test_geos', 8 'test_measure', 9 ] 10 try: 11 # GDAL tests 12 import django.contrib.gis.gdal 13 test_suite_names += [ 14 'test_gdal_driver', 15 'test_gdal_ds', 16 'test_gdal_geom', 17 'test_gdal_srs', 18 'test_spatialrefsys', 19 ] 20 except ImportError, e: 21 print >>sys.stderr, "GDAL not available - no GDAL tests will be run." 13 22 14 23 test_models = ['geoapp']
