Skip to content

Commit

Permalink
Update AlgorithmsTestBase.py
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Feb 23, 2016
1 parent 781c10b commit d0d284a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/plugins/processing/tests/AlgorithmsTestBase.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit d0d284a

Please sign in to comment.