Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jakimowb authored and nyalldawson committed May 12, 2023
1 parent 1fe8d21 commit fc2402d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tests/src/python/test_qgsvectorlayersaveasdialog.py
Expand Up @@ -9,22 +9,19 @@
__date__ = '2023-04'
__copyright__ = 'Copyright 2023, The QGIS Project'


from qgis.testing import start_app, unittest
import unittest
from qgis.testing import start_app, TestCase
from qgis.gui import QgsVectorLayerSaveAsDialog
from utilities import unitTestDataPath
from qgis.core import QgsFeature, edit, QgsVectorLayer

# Convenience instances in case you may need them
# not used in this test
start_app()

class TestQgsMapCanvas(TestCase):

class TestQgsMapCanvas(TestCase):

def testOpenDialog(self):

layer = QgsVectorLayer("Polygon?crs=epsg:4326&field=fldtxt:string",
"layer", "memory")
layer = QgsVectorLayer("Polygon?crs=epsg:4326&field=fldtxt:string", "layer", "memory")

with edit(layer):
f = QgsFeature(layer.fields())
Expand All @@ -40,8 +37,6 @@ def testOpenDialog(self):
d = QgsVectorLayerSaveAsDialog(layer, options=options)
d.setOnlySelected(True)
self.assertTrue(d.onlySelected())
self.assertEqual(layer, d.



if __name__ == '__main__':
Expand Down

0 comments on commit fc2402d

Please sign in to comment.