[GRASS-SVN] r61431 - grass/trunk/lib/python/temporal/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 28 11:37:48 PDT 2014
Author: huhabla
Date: 2014-07-28 11:37:47 -0700 (Mon, 28 Jul 2014)
New Revision: 61431
Added:
grass/trunk/lib/python/temporal/testsuite/test_doctests.py
Log:
temporal: Added temporal framework doctests to teststuite
Added: grass/trunk/lib/python/temporal/testsuite/test_doctests.py
===================================================================
--- grass/trunk/lib/python/temporal/testsuite/test_doctests.py (rev 0)
+++ grass/trunk/lib/python/temporal/testsuite/test_doctests.py 2014-07-28 18:37:47 UTC (rev 61431)
@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+"""
+Temporal framework doctests
+"""
+
+import doctest
+import grass.temporal
+import grass.gunittest
+import grass.gunittest.utils
+
+doctest.DocFileCase = type('DocFileCase',
+ (grass.gunittest.TestCase,),
+ dict(doctest.DocFileCase.__dict__))
+doctest.SkipDocTestCase = type('SkipDocTestCase',
+ (grass.gunittest.TestCase,),
+ dict(doctest.SkipDocTestCase.__dict__))
+
+def load_tests(loader, tests, ignore):
+ grass.gunittest.utils.do_doctest_gettext_workaround()
+ tests.addTests(doctest.DocTestSuite(grass.temporal.abstract_dataset))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.abstract_map_dataset))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.abstract_space_time_dataset))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.base))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.c_libraries_interface))
+ # Unexpected error here
+ #tests.addTests(doctest.DocTestSuite(grass.temporal.core))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.datetime_math))
+ # Unexpected error here
+ #tests.addTests(doctest.DocTestSuite(grass.temporal.list_stds))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.metadata))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.register))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.space_time_datasets))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.spatial_extent))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.spatial_topology_dataset_connector))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.spatio_temporal_relationships))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_extent))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_granularity))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_topology_dataset_connector))
+ # Algebra is still very experimental
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_algebra))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_raster3d_algebra))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_raster_algebra))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_raster_base_algebra))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_raster_operator))
+ # TODO: Fix tests
+ #tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_vector_algebra))
+ tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_vector_operator))
+ return tests
+
+if __name__ == '__main__':
+ grass.gunittest.test()
More information about the grass-commit
mailing list