mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Don't try to load default styles in processing test layers
This commit is contained in:
parent
3cbcd75d2f
commit
ab06973d6a
@ -216,9 +216,9 @@ class AlgorithmsTest(object):
|
|||||||
self.in_place_layers[id] = filepath
|
self.in_place_layers[id] = filepath
|
||||||
|
|
||||||
if param['type'] in ('vector', 'table'):
|
if param['type'] in ('vector', 'table'):
|
||||||
lyr = QgsVectorLayer(filepath, param['name'], 'ogr')
|
lyr = QgsVectorLayer(filepath, param['name'], 'ogr', False)
|
||||||
elif param['type'] == 'raster':
|
elif param['type'] == 'raster':
|
||||||
lyr = QgsRasterLayer(filepath, param['name'], 'gdal')
|
lyr = QgsRasterLayer(filepath, param['name'], 'gdal', False)
|
||||||
|
|
||||||
self.assertTrue(lyr.isValid(), 'Could not load layer "{}" from param {}'.format(filepath, param))
|
self.assertTrue(lyr.isValid(), 'Could not load layer "{}" from param {}'.format(filepath, param))
|
||||||
QgsProject.instance().addMapLayer(lyr)
|
QgsProject.instance().addMapLayer(lyr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user