Skip to content
Permalink
Browse files
Fix test (now geom col is exposed)
  • Loading branch information
elpaso committed Jul 6, 2021
1 parent a3b9ced commit 336a64d77a1da804da6f340c505cd620334883d0
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/src/python/test_qgsnewvectortabledialog.py
@@ -60,10 +60,14 @@ def test_dialog(self):
md = QgsProviderRegistry.instance().providerMetadata('ogr')
conn = md.createConnection(self.uri, {})
dialog = QgsNewVectorTableDialog(conn)
dialog.setFields(conn.fields('', 'cdb_lines'))
fields = QgsFields()
for f in conn.fields('', 'cdb_lines'):
if f.name() != 'geom':
fields.append(f)
dialog.setFields(fields)
dialog.setTableName('no_lock_me_down_again')

# dialog.exec_()
#dialog.exec_()

geom_type_combo = dialog.findChildren(QComboBox, 'mGeomTypeCbo')[0]
geom_name_le = dialog.findChildren(QLineEdit, 'mGeomColumn')[0]

0 comments on commit 336a64d

Please sign in to comment.