diff options
Diffstat (limited to 'webapp/django/contrib/gis/tests/test_gdal.py')
-rw-r--r-- | webapp/django/contrib/gis/tests/test_gdal.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/webapp/django/contrib/gis/tests/test_gdal.py b/webapp/django/contrib/gis/tests/test_gdal.py new file mode 100644 index 0000000000..030ac505fe --- /dev/null +++ b/webapp/django/contrib/gis/tests/test_gdal.py @@ -0,0 +1,28 @@ +""" +Module for executing all of the GDAL tests. None +of these tests require the use of the database. +""" +from unittest import TestSuite, TextTestRunner + +# Importing the GDAL test modules. +from django.contrib.gis.tests import \ + test_gdal_driver, test_gdal_ds, test_gdal_envelope, \ + test_gdal_geom, test_gdal_srs + + +test_suites = [test_gdal_driver.suite(), + test_gdal_ds.suite(), + test_gdal_envelope.suite(), + test_gdal_geom.suite(), + test_gdal_srs.suite(), + ] + +def suite(): + "Builds a test suite for the GDAL tests." + s = TestSuite() + map(s.addTest, test_suites) + return s + +def run(verbosity=1): + "Runs the GDAL tests." + TextTestRunner(verbosity=verbosity).run(suite()) |