test_vwhat_ncspm

./vector/v.what – test_vwhat_ncspm

Test failed

Testtest_vwhat_ncspm
Testsuite./vector/v.what
Test file./vector/v.what/testsuite/test_vwhat_ncspm.py
StatusFAILED
Return code1
Number of tests4
Successful tests2
Failed tests2
Percent successful50%
Test duration0:00:01.197879
Tested modulesv.what

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,
FF..
======================================================================
FAIL: test_multiple_maps (__main__.TestNCMaps)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.what/testsuite/test_vwhat_ncspm.py", line 185, in test_multiple_maps
    self.assertMultiLineEqual(first=out1, second=self.vwhat.outputs.stdout)
  File "etc/python/grass/gunittest/case.py", line 176, in assertMultiLineEqual
    first=first, second=second, msg=msg)
AssertionError: 'East: 636661\nNorth: 226489\n-------------------------------------------------- [truncated]... != 'East: 636661\nNorth: 226489\n-------------------------------------------------- [truncated]...
  East: 636661
  North: 226489
  ------------------------------------------------------------------
  Map: schools 
  Mapset: PERMANENT
  Nothing found.
  ------------------------------------------------------------------
  Map: roadsmajor 
  Mapset: PERMANENT
  Type: Line
  Id: 231
  Length: 2321.407296
  Layer: 1
  Category: 231
  ------------------------------------------------------------------
  Map: elev_points 
  Mapset: PERMANENT
- Nothing found.
+ Type: Point
+ Id: 231
+ Layer: 1
+ Category: 231
  ------------------------------------------------------------------
  Map: geology 
  Mapset: PERMANENT
+ Type: Boundary
+ Id: 231
+ Length: 11969.873710
  Type: Area
  Sq Meters: 261215323.454
  Hectares: 26121.532
  Acres: 64547.712
  Sq Miles: 100.8558
  Layer: 1
  Category: 217


======================================================================
FAIL: test_print_options (__main__.TestNCMaps)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "vector/v.what/testsuite/test_vwhat_ncspm.py", line 190, in test_print_options
    self.assertLooksLike(reference=out2, actual=self.vwhat.outputs.stdout)
  File "etc/python/grass/gunittest/case.py", line 196, in assertLooksLike
    self.fail(self._formatMessage(msg, standardMsg))
AssertionError: "East: 636661
North: 226489
------------------------------------------------------------------
Map: schools 
Mapset: PERMANENT
Nothing found.
------------------------------------------------------------------
Map: roadsmajor 
Mapset: PERMANENT
Type: Line
Id: 231
Length: 2321.407296
Layer: 1
Category: 231

Driver: sqlite
Database: /grassdata/tests-grassdata/nc_basic_spm_grass7/PERMANENT/sqlite/sqlite.db
Table: roadsmajor
Key column: cat
cat : 231
MAJORRDS_ : 233
ROAD_NAME : I-440
MULTILANE : yes
PROPYEAR : 2015
OBJECTID : 231
SHAPE_LEN : 7616.150435
------------------------------------------------------------------
Map: elev_points 
Mapset: PERMANENT
Type: Point
Id: 231
Layer: 1
Category: 231

Driver: sqlite
Database: /grassdata/tests-grassdata/nc_basic_spm_grass7/PERMANENT/sqlite/sqlite.db
Table: elev_points
Key column: cat
cat : 231
value : 123.511597
------------------------------------------------------------------
Map: geology 
Mapset: PERMANENT
Type: Boundary
Id: 231
Length: 11969.873710
Type: Area
Sq Meters: 261215323.454
Hectares: 26121.532
Acres: 64547.712
Sq Miles: 100.8558
Layer: 1
Category: 217

Driver: sqlite
Database: /grassdata/tests-grassdata/nc_basic_spm_grass7/PERMANENT/sqlite/sqlite.db
Table: geology
Key column: cat
cat : 217
onemap_pro : 261215328
PERIMETER : 198808.71875
GEOL250_ : 218
GEOL250_ID : 217
GEO_NAME : CZfg
SHAPE_area : 261215323.454
SHAPE_len : 198808.723525
" does not correspond with "East: 636661
North: 226489
------------------------------------------------------------------
Map: schools 
Mapset: PERMANENT
Nothing found.
------------------------------------------------------------------
Map: roadsmajor 
Mapset: PERMANENT
Type: Line
Id: 231
Length: 2321.407296
Layer: 1
Category: 231

Driver: ...
Database: ...
Table: roadsmajor
Key column: cat
cat : 231
MAJORRDS_ : 233
ROAD_NAME : I-440
MULTILANE : yes
PROPYEAR : 2015
OBJECTID : 231
SHAPE_LEN : 7616.150435
------------------------------------------------------------------
Map: elev_points 
Mapset: PERMANENT
Nothing found.
------------------------------------------------------------------
Map: geology 
Mapset: PERMANENT
Type: Area
Sq Meters: 261215323.454
Hectares: 26121.532
Acres: 64547.712
Sq Miles: 100.8558
Layer: 1
Category: 217

Driver: ...
Database: ...
Table: geology
Key column: cat
cat : 217
onemap_pro : 261215328
PERIMETER : 198808.71875
GEOL250_ : 218
GEOL250_ID : 217
GEO_NAME : CZfg
SHAPE_area : 261215323.454
SHAPE_len : 198808.723525
"

----------------------------------------------------------------------
Ran 4 tests in 0.299s
FAILED (failures=2)