Skip to content

Commit

Permalink
[processing] fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 12, 2016
1 parent 75bd622 commit fcc96de
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions python/plugins/processing/tests/GdalAlgorithmsTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__':
Expand Down

0 comments on commit fcc96de

Please sign in to comment.