[GRASS-SVN] r74276 - grass/trunk/vector/v.profile/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 15 15:01:48 PDT 2019
Author: sbl
Date: 2019-03-15 15:01:48 -0700 (Fri, 15 Mar 2019)
New Revision: 74276
Modified:
grass/trunk/vector/v.profile/testsuite/test_v_profile.py
Log:
fix v.profile test
Modified: grass/trunk/vector/v.profile/testsuite/test_v_profile.py
===================================================================
--- grass/trunk/vector/v.profile/testsuite/test_v_profile.py 2019-03-15 21:52:29 UTC (rev 74275)
+++ grass/trunk/vector/v.profile/testsuite/test_v_profile.py 2019-03-15 22:01:48 UTC (rev 74276)
@@ -51,7 +51,7 @@
class TestProfiling(TestCase):
to_remove = []
points = 'test_v_profile_points'
- in_points = 'points_of_interest'
+ in_points = 'poi_names_wake'
in_map = 'roadsmajor'
where = "cat='354'"
prof_ponts = (647952, 236176, 647950, 236217)
@@ -111,26 +111,26 @@
vpro = SimpleModule('v.profile', input=self.in_points, profile_map=self.in_map, buffer=200,
profile_where=self.where)
vpro.run()
- self.assertLooksLike(reference=output_full, actual=vpro.outputs.stdout)
+ self.assertLooksLike(reference=output_full, actual=vpro.outputs.stdout.encode('utf8'))
# Without column names
vpro = SimpleModule('v.profile', input=self.in_points, profile_map=self.in_map, buffer=200,
profile_where=self.where, c=True)
vpro.run()
- self.assertLooksLike(reference=output_nocols, actual=vpro.outputs.stdout)
+ self.assertLooksLike(reference=output_nocols, actual=vpro.outputs.stdout.encode('utf8'))
# Filtering input points
vpro = SimpleModule('v.profile', input=self.in_points, profile_map=self.in_map, buffer=200,
where="class='Dam'", profile_where=self.where)
vpro.run()
- self.assertLooksLike(reference=output_filtered, actual=vpro.outputs.stdout)
+ self.assertLooksLike(reference=output_filtered, actual=vpro.outputs.stdout.encode('utf8'))
# Providing profiling line from coordinates
vpro = SimpleModule('v.profile', input=self.in_points, coordinates=self.prof_ponts, buffer=200)
vpro.run()
- self.assertLooksLike(reference=output_coords, actual=vpro.outputs.stdout)
+ self.assertLooksLike(reference=output_coords, actual=vpro.outputs.stdout.encode('utf8'))
def testBuffering(self):
"""Test against errors in buffering implementation"""
vpro = SimpleModule('v.profile', input=self.points, separator='comma', dp=3,
- buffer=500, profile_map='roadsmajor at PERMANENT', profile_where='cat=193')
+ buffer=500, profile_map=self.in_map, profile_where='cat=193')
vpro.run()
More information about the grass-commit
mailing list