❌ Test failed
| Test | test_accumulation |
| Testsuite | ./temporal/t.rast.accumulate |
| Test file | ./temporal/t.rast.accumulate/testsuite/test_accumulation.py |
| Status | FAILED |
| Return code | 1 |
| Number of tests | 10 |
| Successful tests | 0 |
| Failed tests | 20 |
| Percent successful | 0% |
| Test duration | 0:00:14.968494 |
... (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 14.064s
FAILED (failures=10, errors=10)