❌ Test failed
Test | test_assertions |
Testsuite | ./lib/python/gunittest |
Test file | ./lib/python/gunittest/testsuite/test_assertions.py |
Status | FAILED |
Return code | 1 |
Number of tests | 30 |
Successful tests | 23 |
Failed tests | 7 |
Percent successful | 77% |
Test duration | 0:01:12.094683 |
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target. DeprecationWarning, FFFF............FF..F......... ====================================================================== FAIL: test_direct_parameters (__main__.TestAssertModuleKeyValue) Test syntax with module and its parameters as function parameters ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/gunittest/testsuite/test_assertions.py", line 148, in test_direct_parameters precision=0.01, sep='=') File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: r.info map=elevation -g -r difference: mismatch values (key, reference, actual): [('max', 156.33, 4519.466), ('min', 55.58, 61.51395)] command: r.info map=elevation -g -r {'map': 'elevation', 'flags': 'gr'} ====================================================================== FAIL: test_parameters_parameter (__main__.TestAssertModuleKeyValue) Test syntax with module parameters in one parameters dictionary ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/gunittest/testsuite/test_assertions.py", line 155, in test_parameters_parameter precision=0.01, sep='=') File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: r.info map=elevation -g -r difference: mismatch values (key, reference, actual): [('max', 156.33, 4519.466), ('min', 55.58, 61.51395)] command: r.info map=elevation -g -r {'parameters': {'map': 'elevation', 'flags': 'gr'}} ====================================================================== FAIL: test_pygrass_module (__main__.TestAssertModuleKeyValue) Test syntax with Module and required parameters as module ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/gunittest/testsuite/test_assertions.py", line 135, in test_pygrass_module precision=0.01, sep='=') File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: r.info map=elevation -g -r difference: mismatch values (key, reference, actual): [('max', 156.33, 4519.466), ('min', 55.58, 61.51395)] command: r.info map=elevation -g -r {} ====================================================================== FAIL: test_pygrass_simple_module (__main__.TestAssertModuleKeyValue) Test syntax with SimpleModule as module ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/gunittest/testsuite/test_assertions.py", line 142, in test_pygrass_simple_module precision=0.01, sep='=') File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: r.info map=elevation -g -r difference: mismatch values (key, reference, actual): [('max', 156.33, 4519.466), ('min', 55.58, 61.51395)] command: r.info map=elevation -g -r {} ====================================================================== FAIL: test_assertRasterFitsInfo (__main__.TestRasterMapAssertions) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/gunittest/testsuite/test_assertions.py", line 182, in test_assertRasterFitsInfo self.assertRasterFitsInfo('elevation', R_INFO_ELEVATION_SUBSET) File "etc/python/grass/gunittest/case.py", line 298, in assertRasterFitsInfo precision=precision) File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: r.info map=elevation -g -r -e difference: mismatch values (key, reference, actual): [('cells', 2025000, 86985600), ('cols', 1500, 8160), ('rows', 1350, 10660)] command: r.info map=elevation -g -r -e {'map': 'elevation', 'flags': 'gre'} ====================================================================== FAIL: test_assertRasterFitsUnivar (__main__.TestRasterMapAssertions) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/gunittest/testsuite/test_assertions.py", line 173, in test_assertRasterFitsUnivar precision=0.01) File "etc/python/grass/gunittest/case.py", line 277, in assertRasterFitsUnivar precision=precision) File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: r.univar map=elevation percentile=90.0 separator== -g difference: mismatch values (key, reference, actual): [('max', 156.329864501953, 4519.4658203125), ('min', 55.5787925720215, 61.5139465332031), ('n', 2025000, 40622485), ('null_cells', 0, 46363115)] command: r.univar map=elevation percentile=90.0 separator== -g {'map': 'elevation', 'separator': '=', 'flags': 'g'} ====================================================================== FAIL: test_common_values_info_univar (__main__.TestRasterMapAssertions) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/gunittest/testsuite/test_assertions.py", line 192, in test_common_values_info_univar ELEVATION_MINMAX, precision=0.01) File "etc/python/grass/gunittest/case.py", line 277, in assertRasterFitsUnivar precision=precision) File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: r.univar map=elevation percentile=90.0 separator== -g difference: mismatch values (key, reference, actual): [('max', 156.329864501953, 4519.4658203125), ('min', 55.5787925720215, 61.5139465332031)] command: r.univar map=elevation percentile=90.0 separator== -g {'map': 'elevation', 'separator': '=', 'flags': 'g'} ---------------------------------------------------------------------- Ran 30 tests in 71.451s FAILED (failures=7)