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