Skip to content

Commit

Permalink
Fix test (now geom col is exposed)
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jul 6, 2021
1 parent a3b9ced commit 336a64d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/src/python/test_qgsnewvectortabledialog.py
Expand Up @@ -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]
Expand Down

0 comments on commit 336a64d

Please sign in to comment.