test_parser_json

./lib/gis – test_parser_json

Test failed

Testtest_parser_json
Testsuite./lib/gis
Test file./lib/gis/testsuite/test_parser_json.py
StatusFAILED
Return code1
Number of tests3
Successful tests0
Failed tests3
Percent successful0%
Test duration0:00:00.681516

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/dist-packages/simplejson/compat.py:19: DeprecationWarning: 'hex' is not a text encoding; use codecs.decode() to handle arbitrary codecs
  return s.decode('hex')
Generates raster maps of slope, aspect, curvatures and partial derivatives from an elevation raster map.

Usage:
 r.slope.aspect [-aen] elevation=name [slope=name] [aspect=name]
   [format=string] [precision=string] [pcurvature=name] [tcurvature=name]
   [dx=name] [dy=name] [dxx=name] [dyy=name] [dxy=name] [zscale=value]
   [min_slope=value] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:
  -a   Do not align the current region to the raster elevation map
  -e   Compute output at edges and near NULL values
  -n   Create aspect as degrees clockwise from North (azimuth), with flat = -9999

Parameters:
   elevation   Name of input elevation raster map
       slope   Name for output slope raster map
      aspect   Name for output aspect raster map
      format   Format for reporting the slope
               options: degrees,percent
               default: degrees
   precision   Type of output aspect and slope maps
               options: CELL,FCELL,DCELL
               default: FCELL
  pcurvature   Name for output profile curvature raster map
  tcurvature   Name for output tangential curvature raster map
          dx   Name for output first order partial derivative dx (E-W slope) raster map
          dy   Name for output first order partial derivative dy (N-S slope) raster map
         dxx   Name for output second order partial derivative dxx raster map
         dyy   Name for output second order partial derivative dyy raster map
         dxy   Name for output second order partial derivative dxy raster map
      zscale   Multiplicative factor to convert elevation units to horizontal units
               default: 1.0
   min_slope   Minimum slope value (in percent) for which aspect is computed
               default: 0.0

ERROR: r.slope.aspect: Sorry, <-> is not a valid flag
ERROR: r.slope.aspect: Sorry, <j> is not a valid flag
ERROR: r.slope.aspect: Sorry, <s> is not a valid flag
ERROR: r.slope.aspect: Sorry, <o> is not a valid flag
EOutputs basic information about a vector map.

Usage:
 v.info [-hcget] map=name [layer=string] [--help] [--verbose]
   [--quiet] [--ui]

Flags:
  -h   Print history instead of info and exit
  -c   Print types/names of table columns for specified layer instead of info and exit
  -g   Print region info in shell script style
  -e   Print extended metadata info in shell script style
  -t   Print topology info in shell script style

Parameters:
    map   Name of vector map
  layer   Layer number or name
          default: 1

ERROR: v.info: Sorry, <-> is not a valid flag
ERROR: v.info: Sorry, <j> is not a valid flag
ERROR: v.info: Sorry, <s> is not a valid flag
ERROR: v.info: Sorry, <o> is not a valid flag
ERROR: v.info: Sorry, <n> is not a valid flag
EExports a vector map to a GRASS ASCII vector representation.

Usage:
 v.out.ascii [-ocr] input=name [layer=string]
   [type=string[,string,...]] [output=name] [columns=name[,name,...]]
   [cats=range] [where=sql_query] format=string [separator=character]
   [precision=value] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:
  -o   Create old (version 4) ASCII file
  -c   Include column names in output (points mode)
  -r   Only export points falling within current 3D region (points mode)

Parameters:
      input   Name of input vector map
      layer   Layer number or name ('-1' for all layers)
              default: 1
       type   Input feature type
              options: point,line,boundary,centroid,area,face,kernel
              default: point,line,boundary,centroid,area,face,kernel
     output   Name for output ASCII file or ASCII vector name if '-o' is defined
    columns   Name of attribute column(s) to be exported (point mode)
       cats   Category values
      where   WHERE conditions of SQL statement without 'where' keyword
     format   Output format
              options: point,standard,wkt
              default: point
  separator   Field separator
              default: pipe
  precision   Number of significant digits (floating point only)
              options: 0-32
              default: 8

ERROR: v.out.ascii: Sorry, <-> is not a valid flag
ERROR: v.out.ascii: Sorry, <j> is not a valid flag
ERROR: v.out.ascii: Sorry, <s> is not a valid flag
ERROR: v.out.ascii: Sorry, <n> is not a valid flag
E
======================================================================
ERROR: test_r_slope_aspect_json (__main__.TestParserJson)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/gis/testsuite/test_parser_json.py", line 42, in test_r_slope_aspect_json
    json_code = simplejson.loads(stdout)
  File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 516, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

======================================================================
ERROR: test_v_info (__main__.TestParserJson)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/gis/testsuite/test_parser_json.py", line 89, in test_v_info
    json_code = simplejson.loads(stdout)
  File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 516, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

======================================================================
ERROR: test_v_out_ascii (__main__.TestParserJson)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/gis/testsuite/test_parser_json.py", line 70, in test_v_out_ascii
    json_code = simplejson.loads(stdout)
  File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 516, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

----------------------------------------------------------------------
Ran 3 tests in 0.081s
FAILED (errors=3)