Skip to content
Permalink
Browse files

Fix procesing test layer loading

  • Loading branch information
nyalldawson committed Jul 6, 2017
1 parent b917a82 commit 274d684f64a352105548f98f39be085dec628eed
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/tests/AlgorithmsTestBase.py
@@ -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]
@@ -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)

0 comments on commit 274d684

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