Skip to content
Permalink
Browse files

[processing] fix indentation

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

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

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

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

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

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

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


if __name__ == '__main__':

0 comments on commit fcc96de

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