~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to lib/python/temporal/testsuite/test_doctests.py

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
"""
 
3
Temporal framework doctests
 
4
"""
 
5
 
 
6
import doctest
 
7
import grass.temporal
 
8
import grass.gunittest
 
9
import grass.gunittest.utils
 
10
import os
 
11
 
 
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__))
 
18
 
 
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))
 
47
    return tests
 
48
 
 
49
if __name__ == '__main__':
 
50
    grass.gunittest.test()