test_simple

./temporal/t.rast.accdetect – test_simple

Test failed

Testtest_simple
Testsuite./temporal/t.rast.accdetect
Test file./temporal/t.rast.accdetect/testsuite/test_simple.py
StatusFAILED
Return code1
Number of tests4
Successful tests3
Failed tests2
Percent successful75%
Test duration0:00:37.835777
Tested modulest.rast.accdetect

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FE...
======================================================================
ERROR: test_num_suffix (__main__.TestRasterExtraction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.accdetect/testsuite/test_simple.py", line 49, in tearDown
    self.runModule("t.remove", flags="rf", type="strds", inputs="B")
  File "etc/python/grass/gunittest/case.py", line 1095, in runModule
    errors=errors)
CalledModuleError: Module run 1 t.remove ended with error
Process ended with non-zero return code t.remove(inputs=['B'], type='strds', flags=u'rf'). See the following errors:
ERROR: Space time raster dataset <B> not found


======================================================================
FAIL: test_num_suffix (__main__.TestRasterExtraction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.accdetect/testsuite/test_simple.py", line 112, in test_num_suffix
    suffix='count%03', basename='result', range=(1,8))
  File "etc/python/grass/gunittest/case.py", line 1161, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.accdetect> module ended with non-zero return code (1)
Called: t.rast_accdetect(input='A', occurrence='B', indicator='C', start='2001-01-01', cycle='12 months', basename='result', suffix='count%03', range=[(1, 8)], staend=[1, 2, 3])
See the following errors:
Processing cycle 2001-01-01 00:00:00 - 2002-01-01 00:00:00
Traceback (most recent call last):
  File "scripts/t.rast.accdetect", line 599, in <module>
    main()
  File "scripts/t.rast.accdetect", line 324, in main
    maximum_strds, dbif)
  File "scripts/t.rast.accdetect", line 537, in compute_occurrence
    occurrence_map_name = tgis.create_numeric_suffic(base, count, tsuffix)
AttributeError: 'module' object has no attribute 'create_numeric_suffic'


----------------------------------------------------------------------
Ran 4 tests in 37.226s
FAILED (failures=1, errors=1)