Skip to content
Permalink
Browse files

Replace old QSettings with QgsSettings

  • Loading branch information
jgrocha committed Aug 9, 2017
1 parent c9de9b2 commit 925ba2ce5fe15a014120c787732e9e108ba10e6e
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/src/python/test_console.py
@@ -17,7 +17,8 @@

from qgis.testing import unittest, start_app
from console import console
from qgis.PyQt.QtCore import QSettings, QCoreApplication
from qgis.core import QgsSettings
from qgis.PyQt.QtCore import QCoreApplication

start_app()

@@ -29,7 +30,7 @@ def test_show_console(self):
QCoreApplication.setOrganizationName("QGIS")
QCoreApplication.setOrganizationDomain("qgis.org")
QCoreApplication.setApplicationName("QGIS-TEST")
QSettings().setValue('pythonConsole/contextHelpOnFirstLaunch', False)
QgsSettings().setValue('pythonConsole/contextHelpOnFirstLaunch', False)

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

0 comments on commit 925ba2c

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