❌ Test failed
Test | v_univar_test |
Testsuite | ./vector/v.univar |
Test file | ./vector/v.univar/testsuite/v_univar_test.py |
Status | FAILED |
Return code | 1 |
Number of tests | 6 |
Successful tests | 2 |
Failed tests | 4 |
Percent successful | 33% |
Test duration | 0:00:01.077373 |
Tested modules | v.univar |
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target. DeprecationWarning, .FE.FE ====================================================================== ERROR: test_flagg (__main__.TestProfiling) Testing flag g with map bridges ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 37, in test_flagg precision=2, sep="=") File "etc/python/grass/gunittest/case.py", line 227, in assertModuleKeyValue self.runModule(module, expecting_stdout=True) File "etc/python/grass/gunittest/case.py", line 1098, in runModule errors=errors) CalledModuleError: Module run 1 v.univar ended with error Process ended with non-zero return code v.univar(map='census', layer='1', type=['point', 'line', 'area'], column='cat', percentile=90, flags=u'g'). See the following errors: ERROR: Vector map <census> not found See available vector maps: boundary_region boundary_state confini_comunali firestations geology geonames hospitals points_bare_surface points_of_interest railroads roadsmajor schools streams streets ====================================================================== ERROR: test_output2 (__main__.TestProfiling) Testing output of v.univar ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 78, in test_output2 self.assertVectorFitsUnivar(map='roadsmajor', column='MAJORRDS_', reference=univar_string, precision=3) File "etc/python/grass/gunittest/case.py", line 446, in assertVectorFitsUnivar **parameters) File "etc/python/grass/gunittest/case.py", line 227, in assertModuleKeyValue self.runModule(module, expecting_stdout=True) File "etc/python/grass/gunittest/case.py", line 1098, in runModule errors=errors) CalledModuleError: Module run 1 v.univar ended with error Process ended with non-zero return code v.univar(map='roadsmajor', layer='1', type=['point', 'line', 'area'], column='MAJORRDS_', percentile=90, flags=u'g'). See the following errors: ERROR: Column <MAJORRDS_> not found in table <roadsmajor> ====================================================================== FAIL: test_flage (__main__.TestProfiling) Testing flag e with map geology ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 41, in test_flage self.assertModule('v.univar', map='geology', column='PERIMETER', flags='e') File "etc/python/grass/gunittest/case.py", line 1164, in assertModule self.fail(self._formatMessage(msg, stdmsg)) AssertionError: Running <v.univar> module ended with non-zero return code (1) Called: v.univar(map='geology', layer='1', type=['point', 'line', 'area'], column='PERIMETER', percentile=90, flags=u'e') See the following errors: WARNING: Extended statistics is currently supported only for points/centroids ERROR: Column <PERIMETER> not found in table <geology> ====================================================================== FAIL: test_output (__main__.TestProfiling) Testing output of v.univar ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 68, in test_output self.assertVectorFitsUnivar(map='hospitals', column='cat', reference=univar_string, precision=3) File "etc/python/grass/gunittest/case.py", line 446, in assertVectorFitsUnivar **parameters) File "etc/python/grass/gunittest/case.py", line 254, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: v.univar map=hospitals layer=1 type=point,line,area column=cat percentile=90 -g difference: mismatch values (key, reference, actual): [('max', 160, 147), ('mean', 80.5, 73.9324), ('n', 160, 148), ('range', 159, 146), ('sum', 12880, 10942)] command: v.univar map=hospitals layer=1 type=point,line,area column=cat percentile=90 -g {'column': 'cat', 'map': 'hospitals', 'flags': 'g'} ---------------------------------------------------------------------- Ran 6 tests in 0.431s FAILED (failures=2, errors=2)