Skip to content
Permalink
Browse files

Don't try to load default styles in processing test layers

  • Loading branch information
nyalldawson committed Jul 6, 2017
1 parent 3cbcd75 commit ab06973d6a071f6afcb678a9c369f87d76af500a
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/tests/AlgorithmsTestBase.py
@@ -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)

0 comments on commit ab06973

Please sign in to comment.
You can’t perform that action at this time.