Skip to content
Permalink
Browse files

Better debuging from processing alg tests

  • Loading branch information
nyalldawson committed Jul 6, 2017
1 parent 6654aec commit b917a826624568df7984677430636260020cb277
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tests/AlgorithmsTestBase.py
@@ -259,11 +259,11 @@ def check_results(self, results, context, params, expected):
raise KeyError('Expected result {} does not exist in {}'.format(str(e), list(results.keys())))

if isinstance(results[id], QgsMapLayer):
assert False
result_lyr = results[id]
else:
result_lyr = QgsProcessingUtils.mapLayerFromString(results[id], context)

self.assertTrue(result_lyr, results[id])
compare = expected_result.get('compare', {})

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

0 comments on commit b917a82

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