Skip to content
Permalink
Browse files

Add rule-based and categorized styles to the bad layers test

  • Loading branch information
elpaso committed Nov 6, 2018
1 parent c8b2677 commit ba3ccca2ddc298d630d786c8b039fdab7ddce78c
@@ -233,9 +233,6 @@ def testStyles(self):
options = QgsDataProvider.ProviderOptions()
temp_dir = QTemporaryDir()
p = QgsProject.instance()
project_path = os.path.join(temp_dir.path(), 'good_layers_test.qgs')
copyfile(os.path.join(TEST_DATA_DIR, 'projects', 'good_layers_test.qgs'), project_path)
copyfile(os.path.join(TEST_DATA_DIR, 'projects', 'bad_layers_test.gpkg'), os.path.join(temp_dir.path(), 'bad_layers_test.gpkg'))
for f in (
'bad_layer_raster_test.tfw',
'bad_layer_raster_test.tiff',
@@ -244,6 +241,7 @@ def testStyles(self):
'good_layers_test.qgs'):
copyfile(os.path.join(TEST_DATA_DIR, 'projects', f), os.path.join(temp_dir.path(), f))

project_path = os.path.join(temp_dir.path(), 'good_layers_test.qgs')
p = QgsProject().instance()
self.assertTrue(p.read(project_path))
self.assertEqual(p.count(), 3)
Binary file not shown.

0 comments on commit ba3ccca

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