Skip to content

Commit

Permalink
Replace old QSettings with QgsSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrocha committed Aug 9, 2017
1 parent c9de9b2 commit 925ba2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/src/python/test_console.py
Expand Up @@ -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()

Expand All @@ -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
Expand Down

0 comments on commit 925ba2c

Please sign in to comment.