mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Better debuging from processing alg tests
This commit is contained in:
parent
6654aec6a5
commit
b917a82662
@ -259,11 +259,11 @@ class AlgorithmsTest(object):
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user