test_accumulation

./temporal/t.rast.accumulate – test_accumulation

Test failed

Testtest_accumulation
Testsuite./temporal/t.rast.accumulate
Test file./temporal/t.rast.accumulate/testsuite/test_accumulation.py
StatusFAILED
Return code1
Number of tests10
Successful tests0
Failed tests20
Percent successful0%
Test duration0:00:28.088789

Supplementary files

Standard error output (stderr)

... (lines omitted)
  File "etc/python/grass/temporal/datetime_math.py", line 420, in adjust_datetime_to_granularity
    seconds = mydate.second
AttributeError: 'NoneType' object has no attribute 'second'


======================================================================
FAIL: test_count_suffix (__main__.TestAccumulate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.accumulate/testsuite/test_accumulation.py", line 217, in test_count_suffix
    overwrite=True,  verbose=True)
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.accumulate> module ended with non-zero return code (1)
Called: t.rast_accumulate(input='A', output='B', start='2001-01-01', stop='2001-01-05', cycle='7 days', granularity='1 day', basename='b', suffix='num', limits=[0, 40], method='gdd', overwrite=True, verbose=True)
See the following errors:
Traceback (most recent call last):
  File "scripts/t.rast.accumulate", line 538, in <module>
    main()
  File "scripts/t.rast.accumulate", line 290, in main
    start = tgis.adjust_datetime_to_granularity(start, granularity)
  File "etc/python/grass/temporal/datetime_math.py", line 420, in adjust_datetime_to_granularity
    seconds = mydate.second
AttributeError: 'NoneType' object has no attribute 'second'


======================================================================
FAIL: test_time_suffix (__main__.TestAccumulate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.accumulate/testsuite/test_accumulation.py", line 235, in test_time_suffix
    overwrite=True,  verbose=True)
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.accumulate> module ended with non-zero return code (1)
Called: t.rast_accumulate(input='A', output='B', start='2001-01-01', stop='2001-01-05', cycle='7 days', granularity='1 day', basename='b', suffix='time', limits=[0, 40], method='gdd', overwrite=True, verbose=True)
See the following errors:
Traceback (most recent call last):
  File "scripts/t.rast.accumulate", line 538, in <module>
    main()
  File "scripts/t.rast.accumulate", line 290, in main
    start = tgis.adjust_datetime_to_granularity(start, granularity)
  File "etc/python/grass/temporal/datetime_math.py", line 420, in adjust_datetime_to_granularity
    seconds = mydate.second
AttributeError: 'NoneType' object has no attribute 'second'


----------------------------------------------------------------------
Ran 10 tests in 27.119s
FAILED (failures=10, errors=10)