test_assertions_vect

./lib/python/gunittest – test_assertions_vect

Test failed

Testtest_assertions_vect
Testsuite./lib/python/gunittest
Test file./lib/python/gunittest/testsuite/test_assertions_vect.py
StatusFAILED
Return code1
Number of tests11
Successful tests8
Failed tests3
Percent successful73%
Test duration0:00:03.883503

Supplementary files

Standard error output (stderr)

../usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
.....FFE.
======================================================================
ERROR: test_assertVectorFitsUnivar (__main__.TestVectorInfoAssertions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_assertions_vect.py", line 65, in test_assertVectorFitsUnivar
    precision=0.01)
  File "etc/python/grass/gunittest/case.py", line 445, in assertVectorFitsUnivar
    **parameters)
  File "etc/python/grass/gunittest/case.py", line 226, in assertModuleKeyValue
    self.runModule(module, expecting_stdout=True)
  File "etc/python/grass/gunittest/case.py", line 1095, in runModule
    errors=errors)
CalledModuleError: Module run 1 v.univar ended with error
Process ended with non-zero return code v.univar(map='schools', layer='1', type=['point', 'line', 'area'], column='CORECAPACI', percentile=90, flags=u'g'). See the following errors:
ERROR: Column <CORECAPACI> not found in table <schools>


======================================================================
FAIL: test_assertVectorFitsRegionInfo (__main__.TestVectorInfoAssertions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_assertions_vect.py", line 90, in test_assertVectorFitsRegionInfo
    self.assertVectorFitsRegionInfo('schools', V_UNIVAR_SCHOOLS_REGION, precision=1.0)
  File "etc/python/grass/gunittest/case.py", line 375, in assertVectorFitsRegionInfo
    precision=precision)
  File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue
    self.fail(self._formatMessage(msg, stdMsg))
AssertionError: v.info map=schools layer=1 -g difference:
mismatch values (key, reference, actual): [('east', 671715, 494625.376418174), ('north', 248160, 5108938.31840633), ('south', 203560, 4899956.77991685), ('west', 619215, 337777.956026149)]
command: v.info map=schools layer=1 -g {'map': 'schools', 'flags': 'g'}

======================================================================
FAIL: test_assertVectorFitsTopoInfo (__main__.TestVectorInfoAssertions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_assertions_vect.py", line 77, in test_assertVectorFitsTopoInfo
    self.assertVectorFitsTopoInfo('schools', V_UNIVAR_SCHOOLS_TOPO)
  File "etc/python/grass/gunittest/case.py", line 360, in assertVectorFitsTopoInfo
    precision=0)
  File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue
    self.fail(self._formatMessage(msg, stdMsg))
AssertionError: v.info map=schools layer=1 -t difference:
mismatch values (key, reference, actual): [('points', 167, 283), ('primitives', 167, 283)]
command: v.info map=schools layer=1 -t {'map': 'schools', 'flags': 't'}

----------------------------------------------------------------------
Ran 11 tests in 3.068s
FAILED (failures=2, errors=1)