Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 36f1158
Show file tree
Hide file tree
Showing 4 changed files with 1,286 additions and 158 deletions.
4 changes: 1 addition & 3 deletions tests/src/python/test_qgsprojectbadlayers.py
Expand Up @@ -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',
Expand All @@ -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)
Expand Down
Binary file modified tests/testdata/projects/bad_layers_test.gpkg
Binary file not shown.

0 comments on commit 36f1158

Please sign in to comment.