Skip to content
Permalink
Browse files

[processing] fix deprecation warnings in GDAL test

  • Loading branch information
alexbruy committed Nov 12, 2016
1 parent 23de13c commit 52e29b93b887446ca11f3cc40bb931c7f2b4677a
Showing with 7 additions and 7 deletions.
  1. +7 −7 python/plugins/processing/tests/GdalAlgorithmsTest.py
@@ -74,31 +74,31 @@ def test_getConnectionString(self):
cs = obj.getConnectionString()
# NOTE: defaults are debatable, see
# https://github.com/qgis/QGIS/pull/3607#issuecomment-253971020
self.assertEquals(obj.getConnectionString(),
self.assertEqual(obj.getConnectionString(),
"host=localhost port=5432 active_schema=public")

obj.setParameterValue('HOST', 'remote')
self.assertEquals(obj.getConnectionString(),
self.assertEqual(obj.getConnectionString(),
"host=remote port=5432 active_schema=public")

obj.setParameterValue('HOST', '')
self.assertEquals(obj.getConnectionString(),
self.assertEqual(obj.getConnectionString(),
"port=5432 active_schema=public")

obj.setParameterValue('PORT', '5555')
self.assertEquals(obj.getConnectionString(),
self.assertEqual(obj.getConnectionString(),
"port=5555 active_schema=public")

obj.setParameterValue('PORT', '')
self.assertEquals(obj.getConnectionString(),
self.assertEqual(obj.getConnectionString(),
"active_schema=public")

obj.setParameterValue('USER', 'usr')
self.assertEquals(obj.getConnectionString(),
self.assertEqual(obj.getConnectionString(),
"active_schema=public user=usr")

obj.setParameterValue('PASSWORD', 'pwd')
self.assertEquals(obj.getConnectionString(),
self.assertEqual(obj.getConnectionString(),
"password=pwd active_schema=public user=usr")


0 comments on commit 52e29b9

Please sign in to comment.
You can’t perform that action at this time.