Skip to content

Commit

Permalink
Don't try to load default styles in processing test layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 6, 2017
1 parent 3cbcd75 commit ab06973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/tests/AlgorithmsTestBase.py
Expand Up @@ -216,9 +216,9 @@ def load_layer(self, id, param):
self.in_place_layers[id] = filepath

if param['type'] in ('vector', 'table'):
lyr = QgsVectorLayer(filepath, param['name'], 'ogr')
lyr = QgsVectorLayer(filepath, param['name'], 'ogr', False)
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))
QgsProject.instance().addMapLayer(lyr)
Expand Down

0 comments on commit ab06973

Please sign in to comment.