@@ -75,31 +75,31 @@ def test_getConnectionString(self):
75
75
# NOTE: defaults are debatable, see
76
76
# https://github.com/qgis/QGIS/pull/3607#issuecomment-253971020
77
77
self .assertEqual (obj .getConnectionString (),
78
- "host=localhost port=5432 active_schema=public" )
78
+ "host=localhost port=5432 active_schema=public" )
79
79
80
80
obj .setParameterValue ('HOST' , 'remote' )
81
81
self .assertEqual (obj .getConnectionString (),
82
- "host=remote port=5432 active_schema=public" )
82
+ "host=remote port=5432 active_schema=public" )
83
83
84
84
obj .setParameterValue ('HOST' , '' )
85
85
self .assertEqual (obj .getConnectionString (),
86
- "port=5432 active_schema=public" )
86
+ "port=5432 active_schema=public" )
87
87
88
88
obj .setParameterValue ('PORT' , '5555' )
89
89
self .assertEqual (obj .getConnectionString (),
90
- "port=5555 active_schema=public" )
90
+ "port=5555 active_schema=public" )
91
91
92
92
obj .setParameterValue ('PORT' , '' )
93
93
self .assertEqual (obj .getConnectionString (),
94
- "active_schema=public" )
94
+ "active_schema=public" )
95
95
96
96
obj .setParameterValue ('USER' , 'usr' )
97
97
self .assertEqual (obj .getConnectionString (),
98
- "active_schema=public user=usr" )
98
+ "active_schema=public user=usr" )
99
99
100
100
obj .setParameterValue ('PASSWORD' , 'pwd' )
101
101
self .assertEqual (obj .getConnectionString (),
102
- "password=pwd active_schema=public user=usr" )
102
+ "password=pwd active_schema=public user=usr" )
103
103
104
104
105
105
if __name__ == '__main__' :
0 commit comments