File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 13
13
__revision__ = '$Format:%H$'
14
14
15
15
import qgis # NOQA
16
+ import os
16
17
17
18
from qgis .testing import unittest , start_app
18
19
from console import console
20
+ from qgis .PyQt .QtCore import QSettings , QCoreApplication
19
21
20
22
start_app ()
21
23
22
24
23
25
class TestConsole (unittest .TestCase ):
24
26
25
27
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
+
26
34
my_console = console .show_console ()
27
35
my_console_widget = my_console .console
28
36
Original file line number Diff line number Diff line change 27
27
28
28
from qgis .testing import unittest
29
29
from utilities import unitTestDataPath
30
- from builtins import str
31
30
32
31
print ('CTEST_FULL_OUTPUT' )
33
32
@@ -162,8 +161,11 @@ def testPyQgisStartupEnvVar(self):
162
161
env = {'PYQGIS_STARTUP' : testmod })
163
162
164
163
def testOptionsAsFiles (self ):
164
+ if os .name == 'nt' :
165
+ return
166
+
165
167
# verify QGIS accepts filenames that match options after the special option '--'
166
- # '--help' should return immediatly (after displaying the usage hints)
168
+ # '--help' should return immediately (after displaying the usage hints)
167
169
# '-- --help' should not exit but try (and probably fail) to load a layer called '--help'
168
170
with self .assertRaises (Exception ):
169
171
self .doTestStartup (option = "--configpath" ,
You can’t perform that action at this time.
0 commit comments