1
# -*- coding: utf-8 -*-
3
Temporal framework doctests
9
import grass.gunittest.utils
12
doctest.DocFileCase = type('DocFileCase',
13
(grass.gunittest.TestCase,),
14
dict(doctest.DocFileCase.__dict__))
15
doctest.SkipDocTestCase = type('SkipDocTestCase',
16
(grass.gunittest.TestCase,),
17
dict(doctest.SkipDocTestCase.__dict__))
19
def load_tests(loader, tests, ignore):
20
grass.gunittest.utils.do_doctest_gettext_workaround()
21
tests.addTests(doctest.DocTestSuite(grass.temporal.abstract_dataset))
22
tests.addTests(doctest.DocTestSuite(grass.temporal.abstract_map_dataset))
23
tests.addTests(doctest.DocTestSuite(grass.temporal.abstract_space_time_dataset))
24
tests.addTests(doctest.DocTestSuite(grass.temporal.base))
25
tests.addTests(doctest.DocTestSuite(grass.temporal.c_libraries_interface))
26
# Unexpected error here
27
#tests.addTests(doctest.DocTestSuite(grass.temporal.core))
28
tests.addTests(doctest.DocTestSuite(grass.temporal.datetime_math))
29
# Unexpected error here
30
#tests.addTests(doctest.DocTestSuite(grass.temporal.list_stds))
31
tests.addTests(doctest.DocTestSuite(grass.temporal.metadata))
32
tests.addTests(doctest.DocTestSuite(grass.temporal.register))
33
tests.addTests(doctest.DocTestSuite(grass.temporal.space_time_datasets))
34
tests.addTests(doctest.DocTestSuite(grass.temporal.spatial_extent))
35
tests.addTests(doctest.DocTestSuite(grass.temporal.spatial_topology_dataset_connector))
36
tests.addTests(doctest.DocTestSuite(grass.temporal.spatio_temporal_relationships))
37
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_extent))
38
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_granularity))
39
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_topology_dataset_connector))
40
# Algebra is still very experimental
41
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_algebra))
42
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_raster3d_algebra))
43
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_raster_algebra))
44
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_raster_base_algebra))
45
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_operator))
46
tests.addTests(doctest.DocTestSuite(grass.temporal.temporal_vector_algebra))
49
if __name__ == '__main__':
50
grass.gunittest.test()