Skip to content

Commit ff05ee0

Browse files
committed
[tests] Add preconfigured project to test local server connection
1 parent c1a86d7 commit ff05ee0

File tree

2 files changed

+676
-2
lines changed

2 files changed

+676
-2
lines changed

tests/src/python/qgis_local_server.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ def test_get_map_serverconfig(self):
439439

440440

441441
if __name__ == '__main__':
442-
TESTSPAWN = True
443-
TESTPROJ = '/test-projects/tests/pal_test.qgs'
442+
TESTSPAWN = False # whether to test a preconfigured, spawned process
443+
# to test connection:
444+
# '/test-projects/tests' should == your config 'projdir'
445+
# copy the contents of <src>/tests/testdata/labeling/ to projdir
446+
TESTPROJ = '/test-projects/tests/test-connection.qgs'
444447
unittest.main(verbosity=2)

0 commit comments

Comments
 (0)