Skip to content

Commit 1305ccc

Browse files
committed
Fix new geopackage layer test
1 parent 7e0c149 commit 1305ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/python/test_qgsnewgeopackagelayerdialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from qgis.PyQt.QtTest import QTest
2222

2323
from qgis.core import QgsProject, QgsSettings, QgsWkbTypes
24-
from qgis.gui import QgsNewGeoPackageLayerDialog
24+
from qgis.gui import QgsNewGeoPackageLayerDialog, QgsFileWidget
2525
from qgis.testing import start_app, unittest
2626

2727

@@ -63,7 +63,7 @@ def test(self):
6363
dialog = QgsNewGeoPackageLayerDialog()
6464
dialog.setProperty("hideDialogs", True)
6565

66-
mDatabase = dialog.findChild(QLineEdit, "mDatabase")
66+
mDatabase = dialog.findChild(QgsFileWidget, "mDatabase")
6767
buttonBox = dialog.findChild(QDialogButtonBox, "buttonBox")
6868
ok_button = buttonBox.button(QDialogButtonBox.Ok)
6969
mTableNameEdit = dialog.findChild(QLineEdit, "mTableNameEdit")

0 commit comments

Comments
 (0)