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 tests0
Failed tests8
Percent successful0%
Test duration0:00:15.233378

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,
FEFEFEFE
======================================================================
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 1098, 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


======================================================================
ERROR: test_simple (__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 1098, 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


======================================================================
ERROR: test_stop (__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 1098, 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


======================================================================
ERROR: test_time_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 1098, 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 1164, 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:
Traceback (most recent call last):
  File "scripts/t.rast.accdetect", line 599, in <module>
    main()
  File "scripts/t.rast.accdetect", line 291, in main
    end = tgis.increment_datetime_by_string(start, cycle)
  File "etc/python/grass/temporal/datetime_math.py", line 209, in increment_datetime_by_string
    return modify_datetime_by_string(mydate, increment, mult, sign=int(1))
  File "etc/python/grass/temporal/datetime_math.py", line 277, in modify_datetime_by_string
    minutes, seconds)
  File "etc/python/grass/temporal/datetime_math.py", line 299, in modify_datetime
    year = mydate.year
AttributeError: 'NoneType' object has no attribute 'year'


======================================================================
FAIL: test_simple (__main__.TestRasterExtraction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.accdetect/testsuite/test_simple.py", line 55, in test_simple
    basename='result', range=(1,8))
  File "etc/python/grass/gunittest/case.py", line 1164, 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='gran', range=[(1, 8)], staend=[1, 2, 3])
See the following errors:
Traceback (most recent call last):
  File "scripts/t.rast.accdetect", line 599, in <module>
    main()
  File "scripts/t.rast.accdetect", line 291, in main
    end = tgis.increment_datetime_by_string(start, cycle)
  File "etc/python/grass/temporal/datetime_math.py", line 209, in increment_datetime_by_string
    return modify_datetime_by_string(mydate, increment, mult, sign=int(1))
  File "etc/python/grass/temporal/datetime_math.py", line 277, in modify_datetime_by_string
    minutes, seconds)
  File "etc/python/grass/temporal/datetime_math.py", line 299, in modify_datetime
    year = mydate.year
AttributeError: 'NoneType' object has no attribute 'year'


======================================================================
FAIL: test_stop (__main__.TestRasterExtraction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.accdetect/testsuite/test_simple.py", line 79, in test_stop
    cycle="12 months", basename='result', range=(1,8))
  File "etc/python/grass/gunittest/case.py", line 1164, 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', stop='2008-12-31', cycle='12 months', basename='result', suffix='gran', range=[(1, 8)], staend=[1, 2, 3])
See the following errors:
Traceback (most recent call last):
  File "scripts/t.rast.accdetect", line 599, in <module>
    main()
  File "scripts/t.rast.accdetect", line 291, in main
    end = tgis.increment_datetime_by_string(start, cycle)
  File "etc/python/grass/temporal/datetime_math.py", line 209, in increment_datetime_by_string
    return modify_datetime_by_string(mydate, increment, mult, sign=int(1))
  File "etc/python/grass/temporal/datetime_math.py", line 277, in modify_datetime_by_string
    minutes, seconds)
  File "etc/python/grass/temporal/datetime_math.py", line 299, in modify_datetime
    year = mydate.year
AttributeError: 'NoneType' object has no attribute 'year'


======================================================================
FAIL: test_time_suffix (__main__.TestRasterExtraction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.accdetect/testsuite/test_simple.py", line 103, in test_time_suffix
    basename='result', range=(1,8))
  File "etc/python/grass/gunittest/case.py", line 1164, 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='time', range=[(1, 8)], staend=[1, 2, 3])
See the following errors:
Traceback (most recent call last):
  File "scripts/t.rast.accdetect", line 599, in <module>
    main()
  File "scripts/t.rast.accdetect", line 291, in main
    end = tgis.increment_datetime_by_string(start, cycle)
  File "etc/python/grass/temporal/datetime_math.py", line 209, in increment_datetime_by_string
    return modify_datetime_by_string(mydate, increment, mult, sign=int(1))
  File "etc/python/grass/temporal/datetime_math.py", line 277, in modify_datetime_by_string
    minutes, seconds)
  File "etc/python/grass/temporal/datetime_math.py", line 299, in modify_datetime
    year = mydate.year
AttributeError: 'NoneType' object has no attribute 'year'


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