Skip to content

Commit ab06973

Browse files
committedJul 6, 2017
Don't try to load default styles in processing test layers
1 parent 3cbcd75 commit ab06973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/processing/tests/AlgorithmsTestBase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ def load_layer(self, id, param):
216216
self.in_place_layers[id] = filepath
217217

218218
if param['type'] in ('vector', 'table'):
219-
lyr = QgsVectorLayer(filepath, param['name'], 'ogr')
219+
lyr = QgsVectorLayer(filepath, param['name'], 'ogr', False)
220220
elif param['type'] == 'raster':
221-
lyr = QgsRasterLayer(filepath, param['name'], 'gdal')
221+
lyr = QgsRasterLayer(filepath, param['name'], 'gdal', False)
222222

223223
self.assertTrue(lyr.isValid(), 'Could not load layer "{}" from param {}'.format(filepath, param))
224224
QgsProject.instance().addMapLayer(lyr)

0 commit comments

Comments
 (0)
Please sign in to comment.