Skip to content
Permalink
Browse files

Update AlgorithmsTestBase.py

  • Loading branch information
m-kuhn committed Feb 13, 2016
1 parent 781c10b commit d0d284ad844147aebb36dd8275691a852bb4d256
Showing with 2 additions and 5 deletions.
  1. +2 −5 python/plugins/processing/tests/AlgorithmsTestBase.py
@@ -87,8 +87,8 @@ def check_algorithm(self, name, defs):
for r, p in defs['results'].iteritems():
alg.setOutputValue(r, self.load_result_param(p))

self.assertTrue(AlgorithmExecutor.runalg(alg))
print(alg.getAsCommand())
self.assertTrue(AlgorithmExecutor.runalg(alg))
self.check_results(alg.getOutputValuesAsDictionary(), defs['results'])

def load_params(self, params):
@@ -177,10 +177,7 @@ def check_results(self, results, expected):

result_lyr = QgsVectorLayer(results[id], id, 'ogr')

try:
compare = expected_result['compare']
except KeyError:
compare = {}
compare = expected_result.get('compare', {})

self.assertLayersEqual(expected_lyr, result_lyr, compare=compare)

0 comments on commit d0d284a

Please sign in to comment.
You can’t perform that action at this time.