File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1313__revision__ = '$Format:%H$'
1414
1515import qgis # NOQA
16+ import os
1617
1718from qgis .testing import unittest , start_app
1819from console import console
20+ from qgis .PyQt .QtCore import QSettings , QCoreApplication
1921
2022start_app ()
2123
2224
2325class TestConsole (unittest .TestCase ):
2426
2527 def test_show_console (self ):
28+ if os .name == 'nt' :
29+ QCoreApplication .setOrganizationName ("QGIS" )
30+ QCoreApplication .setOrganizationDomain ("qgis.org" )
31+ QCoreApplication .setApplicationName ("QGIS-TEST" )
32+ QSettings ().setValue ('pythonConsole/contextHelpOnFirstLaunch' , False )
33+
2634 my_console = console .show_console ()
2735 my_console_widget = my_console .console
2836
Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ def testPyQgisStartupEnvVar(self):
157157 env = {'PYQGIS_STARTUP' : testmod })
158158
159159 def testOptionsAsFiles (self ):
160+ if os .name == 'nt' :
161+ return
162+
160163 # verify QGIS accepts filenames that match options after the special option '--'
161164 # '--help' should return immediately (after displaying the usage hints)
162165 # '-- --help' should not exit but try (and probably fail) to load a layer called '--help'
You can’t perform that action at this time.
0 commit comments