Skip to content
Permalink
Browse files

Merge pull request #8425 from elpaso/handle-bad-layers3

Add symbology tests (rule based and categorized) to Handle bad layers
  • Loading branch information
elpaso committed Nov 6, 2018
2 parents 4505929 + 7db1d4e commit 36f115833ea6eb5d801dc458a5d3112993d25e9d
@@ -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 36f1158

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