mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -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())))
|
raise KeyError('Expected result {} does not exist in {}'.format(str(e), list(results.keys())))
|
||||||
|
|
||||||
if isinstance(results[id], QgsMapLayer):
|
if isinstance(results[id], QgsMapLayer):
|
||||||
assert False
|
|
||||||
result_lyr = results[id]
|
result_lyr = results[id]
|
||||||
else:
|
else:
|
||||||
result_lyr = QgsProcessingUtils.mapLayerFromString(results[id], context)
|
result_lyr = QgsProcessingUtils.mapLayerFromString(results[id], context)
|
||||||
|
|
||||||
|
self.assertTrue(result_lyr, results[id])
|
||||||
compare = expected_result.get('compare', {})
|
compare = expected_result.get('compare', {})
|
||||||
|
|
||||||
self.assertLayersEqual(expected_lyr, result_lyr, compare=compare)
|
self.assertLayersEqual(expected_lyr, result_lyr, compare=compare)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user