Skip to content

Commit

Permalink
Better debuging from processing alg tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 6, 2017
1 parent 6654aec commit b917a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tests/AlgorithmsTestBase.py
Expand Up @@ -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)
Expand Down

0 comments on commit b917a82

Please sign in to comment.