Skip to content

Commit 6c89265

Browse files
committed
Followup a463858, fix failing tests
1 parent 2d7addc commit 6c89265

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

python/plugins/processing/algs/qgis/IdwInterpolation.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def parseValue(value):
7676
def dataToString(data):
7777
s = ''
7878
for c in data:
79-
s += '{}::~:: {}::~:: {:d}::~:: {:d};'.format(c[0],
80-
c[1],
81-
c[2],
82-
c[3])
79+
s += '{}::~::{}::~::{:d}::~::{:d};'.format(c[0],
80+
c[1],
81+
c[2],
82+
c[3])
8383
return s[:-1]
8484

8585

python/plugins/processing/tests/AlgorithmsTestBase.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ def load_param(self, param, id=None):
155155
prefix = processingTestDataPath()
156156
tmp = ''
157157
for r in param['name'].split(';'):
158-
v = r.split(',')
159-
tmp += '{},{},{},{};'.format(os.path.join(prefix, v[0]),
160-
v[1], v[2], v[3])
158+
v = r.split('::~::')
159+
tmp += '{}::~::{}::~::{}::~::{};'.format(os.path.join(prefix, v[0]),
160+
v[1], v[2], v[3])
161161
return tmp[:-1]
162162
except TypeError:
163163
# No type specified, use whatever is there

python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ tests:
17151715
DISTANCE_COEFFICIENT: 2.0
17161716
EXTENT: 0, 8, -5, 3
17171717
INTERPOLATION_DATA:
1718-
name: pointsz.gml,0,1,0
1718+
name: pointsz.gml::~::0::~::1::~::0
17191719
type: interpolation
17201720
ROWS: 300
17211721
results:
@@ -1732,7 +1732,7 @@ tests:
17321732
DISTANCE_COEFFICIENT: 2.0
17331733
EXTENT: 0, 8, -5, 3
17341734
INTERPOLATION_DATA:
1735-
name: pointsz.gml,1,-1,0
1735+
name: pointsz.gml::~::1::~::-1::~::0
17361736
type: interpolation
17371737
ROWS: 300
17381738
results:
@@ -1748,7 +1748,7 @@ tests:
17481748
COLUMNS: 300
17491749
EXTENT: 0, 8, -5, 3
17501750
INTERPOLATION_DATA:
1751-
name: pointsz.gml,0,1,0
1751+
name: pointsz.gml::~::0::~::1::~::0
17521752
type: interpolation
17531753
METHOD: '0'
17541754
ROWS: 300
@@ -1768,7 +1768,7 @@ tests:
17681768
COLUMNS: 300
17691769
EXTENT: 0, 8, -5, 3
17701770
INTERPOLATION_DATA:
1771-
name: pointsz.gml,1,-1,0
1771+
name: pointsz.gml::~::1::~::-1::~::0
17721772
type: interpolation
17731773
METHOD: '1'
17741774
ROWS: 300

0 commit comments

Comments
 (0)