Skip to content
Permalink
Browse files

Prevent test_console.py to open the browser with help file

Fix link to documentation related with OGR connections
  • Loading branch information
jgrocha committed Aug 10, 2017
1 parent 925ba2c commit 146c0c8c2d4105100ba8f9408487a2f635145c40
Showing with 4 additions and 2 deletions.
  1. +1 −1 src/gui/ogr/qgsnewogrconnection.cpp
  2. +3 −1 tests/src/python/test_console.py
@@ -141,7 +141,7 @@ void QgsNewOgrConnection::on_btnConnect_clicked()

void QgsNewOgrConnection::helpRequest()
{
QgsHelp::openHelp( "managing_data_source/opening_data.html#connecting-to-ogr" );
QgsHelp::openHelp( "managing_data_source/opening_data.html#creating-a-stored-connection" );
}

//! End Autoconnected SLOTS *
@@ -25,12 +25,14 @@

class TestConsole(unittest.TestCase):

def setUp(self):
QgsSettings().setValue('pythonConsole/contextHelpOnFirstLaunch', False)

def test_show_console(self):
if os.name == 'nt':
QCoreApplication.setOrganizationName("QGIS")
QCoreApplication.setOrganizationDomain("qgis.org")
QCoreApplication.setApplicationName("QGIS-TEST")
QgsSettings().setValue('pythonConsole/contextHelpOnFirstLaunch', False)

my_console = console.show_console()
my_console_widget = my_console.console

0 comments on commit 146c0c8

Please sign in to comment.
You can’t perform that action at this time.