Skip to content
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 (
@@ -244,6 +241,7 @@ def testStyles(self):
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.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.