Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update test
  • Loading branch information
nyalldawson committed May 15, 2023
1 parent 50175dc commit b37f503
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/python/test_qgsvectorlayersaveasdialog.py
Expand Up @@ -33,7 +33,10 @@ def testOpenDialog(self):
layer.addFeature(f)

layer.select(layer.allFeatureIds()[0])
options = QgsVectorLayerSaveAsDialog.SelectedOnly | QgsVectorLayerSaveAsDialog.Metadata
options = QgsVectorLayerSaveAsDialog.Options(
QgsVectorLayerSaveAsDialog.OptionSelectedOnly
| QgsVectorLayerSaveAsDialog.Option.Metadata
)
d = QgsVectorLayerSaveAsDialog(layer, options=options)
self.assertIsInstance(d, QgsVectorLayerSaveAsDialog)
d.setOnlySelected(True)
Expand Down

0 comments on commit b37f503

Please sign in to comment.