test_r_horizon

./raster/r.horizon – test_r_horizon

Test failed

Testtest_r_horizon
Testsuite./raster/r.horizon
Test file./raster/r.horizon/testsuite/test_r_horizon.py
StatusFAILED
Return code1
Number of tests5
Successful tests0
Failed tests5
Percent successful0%
Test duration1:27:15.161077
Tested modulesr.horizon

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,
FFFFE
======================================================================
ERROR: test_raster_mode_one_direction (__main__.TestHorizon)
Test mode with 1 point and one direction
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.horizon/testsuite/test_r_horizon.py", line 110, in test_raster_mode_one_direction
    self.assertRasterFitsUnivar(raster='test_horizon_output_from_elevation_050', reference=ref, precision=1e6)
  File "etc/python/grass/gunittest/case.py", line 278, in assertRasterFitsUnivar
    precision=precision)
  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 r.univar ended with error
Process ended with non-zero return code r.univar(map=['test_horizon_output_from_elevation_050'], percentile=[90.0], separator='=', flags=u'g'). See the following errors:
ERROR: Raster map <test_horizon_output_from_elevation_050> not found

See available raster maps:
basins
elevation
geology
lakes
landsat.blue
landsat.green
landsat.red
landuse
orthophoto.blue
orthophoto.green
orthophoto.red
orthophoto.rgb
test_horizon_output_from_elevation_%03


======================================================================
FAIL: test_point_mode_multiple_direction (__main__.TestHorizon)
Test mode with 1 point and multiple directions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.horizon/testsuite/test_r_horizon.py", line 100, in test_point_mode_multiple_direction
    self.assertModule(module)
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <r.horizon> module ended with non-zero return code (1)
Called: r.horizon(elevation='elevation', direction=180.0, step=20.0, start=0.0, end=360.0, output='test_horizon_from_elevation', coordinates=[(634720, 216180)], distance=1.0, file='-')
See the following errors:
ERROR: Coordinates are outside of the current region


======================================================================
FAIL: test_point_mode_one_direction (__main__.TestHorizon)
Test mode with 1 point and 1 direction
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.horizon/testsuite/test_r_horizon.py", line 92, in test_point_mode_one_direction
    self.assertModule(module)
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <r.horizon> module ended with non-zero return code (1)
Called: r.horizon(elevation='elevation', direction=180.0, step=0.0, start=0.0, end=360.0, output='test_horizon_from_elevation', coordinates=[(634720, 216180)], distance=1.0, file='-')
See the following errors:
ERROR: Coordinates are outside of the current region


======================================================================
FAIL: test_raster_mode_multiple_direction (__main__.TestHorizon)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.horizon/testsuite/test_r_horizon.py", line 119, in test_raster_mode_multiple_direction
    self.assertMultiLineEqual(first="test_horizon_output_from_elevation_010_000\ntest_horizon_output_from_elevation_025_512", second=stdout)
  File "etc/python/grass/gunittest/case.py", line 177, in assertMultiLineEqual
    first=first, second=second, msg=msg)
AssertionError: 'test_horizon_output_from_elevation_010_000\ntest_horizon_output_from_elevation_ [truncated]... != u'test_horizon_output_from_elevation_%03_%03'
- test_horizon_output_from_elevation_010_000
- test_horizon_output_from_elevation_025_512?                                     ^^ ^^^
+ test_horizon_output_from_elevation_%03_%03?                                    + ^ ^^^


======================================================================
FAIL: test_raster_mode_multiple_direction_offset (__main__.TestHorizon)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.horizon/testsuite/test_r_horizon.py", line 128, in test_raster_mode_multiple_direction_offset
    self.assertMultiLineEqual(first="test_horizon_output_from_elevation_090_000\ntest_horizon_output_from_elevation_105_512", second=stdout)
  File "etc/python/grass/gunittest/case.py", line 177, in assertMultiLineEqual
    first=first, second=second, msg=msg)
AssertionError: 'test_horizon_output_from_elevation_090_000\ntest_horizon_output_from_elevation_ [truncated]... != u'test_horizon_output_from_elevation_%03_%03'
- test_horizon_output_from_elevation_090_000
- test_horizon_output_from_elevation_105_512?                                    ^ ^ ^^^
+ test_horizon_output_from_elevation_%03_%03?                                    ^ ^ ^^^


----------------------------------------------------------------------
Ran 5 tests in 5234.383s
FAILED (failures=4, errors=1)