❌ Test failed
Test | r_watershed_test |
Testsuite | ./raster/r.watershed |
Test file | ./raster/r.watershed/testsuite/r_watershed_test.py |
Status | FAILED |
Return code | 1 |
Number of tests | 6 |
Successful tests | 4 |
Failed tests | 2 |
Percent successful | 67% |
Test duration | 0:11:23.295283 |
Tested modules | r.watershed |
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target. DeprecationWarning, ...FF. ====================================================================== FAIL: test_fourFlag (__main__.TestWatershed) Test the -4 flag and the stream and slope lengths ---------------------------------------------------------------------- Traceback (most recent call last): File "raster/r.watershed/testsuite/r_watershed_test.py", line 103, in test_fourFlag self.assertRastersNoDifference(self.stream_2, self.stream, 100) File "etc/python/grass/gunittest/case.py", line 771, in assertRastersNoDifference reference=statistics, msg=msg) File "etc/python/grass/gunittest/case.py", line 254, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: r.info map=tmp_97d9a2498cb841c3a862ebb0800d67a0 -r difference: mismatch values (key, reference, actual): [('max', 100, 2378), ('min', -100, -2660)] command: r.info map=tmp_97d9a2498cb841c3a862ebb0800d67a0 -r {'map': 'tmp_97d9a2498cb841c3a862ebb0800d67a0', 'flags': 'r'} ====================================================================== FAIL: test_thresholdsize (__main__.TestWatershed) Test the expected range of basin output values ---------------------------------------------------------------------- Traceback (most recent call last): File "raster/r.watershed/testsuite/r_watershed_test.py", line 126, in test_thresholdsize self.assertRasterMinMax(self.basin, 2, 12) File "etc/python/grass/gunittest/case.py", line 476, in assertRasterMinMax self.fail(self._formatMessage(msg, stdmsg)) AssertionError: The actual maximum (874) is greater than the reference one (12) for raster map test_basin (with minimum 2) ---------------------------------------------------------------------- Ran 6 tests in 682.657s FAILED (failures=2)