Skip to content

Commit 097b181

Browse files
author
Maximilian Krambach
committed
identation errors and wrong file paths
1 parent 2f97ec6 commit 097b181

8 files changed

Lines changed: 18 additions & 11 deletions

File tree

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

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ def processAlgorithm(self, progress):
9393
if len(errors) != 0:
9494
for error in errors:
9595
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
96-
self.tr('ValidateGeometry() error: One or '
97-
'more input features have invalid '
98-
'geometry: ') + error.what())
96+
self.tr('ValidateGeometry()'
97+
'error: One or more '
98+
'input features have '
99+
'invalid geometry: ')
100+
+ error.what())
99101
continue
100102
outFeat.setGeometry(tmpInGeom)
101103
first = False
@@ -108,9 +110,11 @@ def processAlgorithm(self, progress):
108110
if len(errors) != 0:
109111
for error in errors:
110112
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
111-
self.tr('ValidateGeometry() error: One or '
112-
'more input features have invalid '
113-
'geometry: ') + error.what())
113+
self.tr('ValidateGeometry()'
114+
'error:One or more input'
115+
'features have invalid '
116+
'geometry: ')
117+
+ error.what())
114118
continue
115119
try:
116120
tmpOutGeom = QgsGeometry(tmpOutGeom.combine(tmpInGeom))
@@ -142,9 +146,11 @@ def processAlgorithm(self, progress):
142146
if len(errors) != 0:
143147
for error in errors:
144148
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
145-
self.tr('ValidateGeometry() error: One or '
146-
'more input features have invalid '
147-
'geometry: ') + error.what())
149+
self.tr('ValidateGeometry() '
150+
'error: One or more input'
151+
'features have invalid '
152+
'geometry: ')
153+
+ error.what())
148154

149155
if attrDict[unicode(tempItem).strip()] is None:
150156
# keep attributes of first feature

python/plugins/processing/tests/testdata/PolygonDissolveTest.gfs renamed to python/plugins/processing/tests/testdata/custom/PolygonDissolveTest.gfs

File renamed without changes.

python/plugins/processing/tests/testdata/PolygonDissolveTest.gml renamed to python/plugins/processing/tests/testdata/custom/PolygonDissolveTest.gml

File renamed without changes.

python/plugins/processing/tests/testdata/nullGeometryDissolve.gfs renamed to python/plugins/processing/tests/testdata/custom/nullGeometryDissolve.gfs

File renamed without changes.

python/plugins/processing/tests/testdata/nullGeometryDissolve.gml renamed to python/plugins/processing/tests/testdata/custom/nullGeometryDissolve.gml

File renamed without changes.

python/plugins/processing/tests/testdata/expected/nullgeometries_output.gml renamed to python/plugins/processing/tests/testdata/expected/nullGeometryDissolve_output.gml

File renamed without changes.

python/plugins/processing/tests/testdata/expected/nullgeometries_output.xsd renamed to python/plugins/processing/tests/testdata/expected/nullGeometryDissolve_output.xsd

File renamed without changes.

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ tests:
208208
DISSOLVE_ALL: 'True'
209209
FIELD: None
210210
INPUT:
211-
name: nullGeometryDissolve.gml
211+
name: custom/nullGeometryDissolve.gml
212212
type: vector
213213
results:
214214
OUTPUT:
@@ -222,9 +222,10 @@ tests:
222222
DISSOLVE_ALL: 'True'
223223
FIELD: None
224224
INPUT:
225-
name: PolygonDissolveTest.gml
225+
name: custom/PolygonDissolveTest.gml
226226
type: vector
227227
results:
228228
OUTPUT:
229229
type: vector
230230
name: expected/PolygonDissolveTest_output.gml
231+

0 commit comments

Comments
 (0)