Skip to content

Commit

Permalink
Prevent test_console.py to open the browser with help file
Browse files Browse the repository at this point in the history
Fix link to documentation related with OGR connections
  • Loading branch information
jgrocha committed Aug 10, 2017
1 parent 925ba2c commit 146c0c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/ogr/qgsnewogrconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
4 changes: 3 additions & 1 deletion tests/src/python/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 146c0c8

Please sign in to comment.