Skip to content

Commit

Permalink
making of #5 #6
Browse files Browse the repository at this point in the history
test v.random3D with v.info #6 #5

Co-Authored-By: josefpudil <[email protected]>
  • Loading branch information
dekanluc and JosefPudil committed May 14, 2020
1 parent 53f48bf commit 1debc7f
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions vector/v.random/testsuite/test_v_random_pokus.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,29 @@ def test_points3D(self):
topology = dict(points=npoints)

self.assertVectorFitsTopoInfo(vector=output, reference=topology)

#self.assertRasterMinMax(map=output, refmin=zmin, refmax=zmax)



self.assertModuleKeyValue('v.info', map=output, flags='etg',
sep="=", precision=5, layer="1",
reference=dict(name=output,
num_dblinks=1,
attribute_layer_name=output,
attribute_layer_number=1,
attribute_database_driver="sqlite",
attribute_table=output,
bottom=zmin,
top=zmax))
#where="bottom>zmin and top<zmax"))
#self.assertModule('v.info',map=output, flags='etg')
#self.assertVectorFitsUnivar(map=output, column='height', reference=topology, msg=None, layer=output, type=None, where="bottom>zmin and top<zmax", precision=0.1)
#self.assertRasterMinMax(map=output, refmin=zmin, refmax=zmax)


#self.assertModuleKeyValue('v.info', map=state, flags='gr',

#reference=dict(min=zmin, max=zmax),

#self.assertModuleKeyValue('v.info', map=state, flags='gr',
#reference=dict(min=zmin, max=zmax),
#precision=0.01, sep='=')

def test_points_restrict (self):
Expand All @@ -61,7 +79,7 @@ def test_points_restrict (self):
topology=dict(points=npoints)
self.assertVectorFitsTopoInfo(vector=output, reference=topology)
#self.assertVectorFitsTopoInfo(vector=state, reference=topology)
#self.assertVectorFitsRegionInfo(vector=state, precision=0.0001,reference=topology)
#self.assertVectorFitsRegionInfo(vector=state, precision=0.1,reference=topology)


if __name__ == '__main__':
Expand Down

0 comments on commit 1debc7f

Please sign in to comment.