Skip to content

Commit

Permalink
Fix procesing test layer loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 6, 2017
1 parent b917a82 commit 274d684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/tests/AlgorithmsTestBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def check_results(self, results, context, params, expected):
expected_lyr = self.load_layer(id, expected_result)
if 'in_place_result' in expected_result:
result_lyr = QgsProcessingUtils.mapLayerFromString(self.in_place_layers[id], context)
self.assertTrue(result_lyr, self.in_place_layers[id])
else:
try:
results[id]
Expand All @@ -262,8 +263,8 @@ def check_results(self, results, context, params, expected):
result_lyr = results[id]
else:
result_lyr = QgsProcessingUtils.mapLayerFromString(results[id], context)
self.assertTrue(result_lyr, results[id])

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 274d684

Please sign in to comment.