def test_datasources(self): dlg = DatasourcesDialog(self.app, self.instance) self.assertEqual(dlg.dlg.get_transient_for(), self.instance) dlg.dlg.show_all() self.refresh_gui() self.assertEqual(dlg.dlg.get_property('visible'), True) dlg.destroy()
def on_datasource_manager(self, *args): dlg = DatasourcesDialog(self.app, self) dlg.run() dlg.destroy()