diff options
author | Alexander Schmolck <alexander.schmolck@smarkets.com> | 2017-05-25 11:39:01 +0100 |
---|---|---|
committer | Alexander Schmolck <alexander.schmolck@smarkets.com> | 2017-05-25 14:49:30 +0100 |
commit | 0c729909cd85b72f1879671c57daf3fbb424ebe9 (patch) | |
tree | 6af1c7a217add38aa3629d779306bc16e81b3b35 /tests/test_completion_refresher.py | |
parent | 666aeee79f849d4a8d02d2860b2f33a9bd105e93 (diff) |
Make it possible to use SSL with pgcli
This adds support for additional url query params which make stuff like
```
pgcli "postgres://user:pass@host.invalid/db?\
sslmode=verify-full&sslcert=my.pem&sslkey=my-key.pem&sslrootcert=ca.pem"
```
work. More generally it allows one to pass through various extra connection
options.
Diffstat (limited to 'tests/test_completion_refresher.py')
-rw-r--r-- | tests/test_completion_refresher.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_completion_refresher.py b/tests/test_completion_refresher.py index f47a9745..08f7811e 100644 --- a/tests/test_completion_refresher.py +++ b/tests/test_completion_refresher.py @@ -79,6 +79,7 @@ def test_refresh_with_callbacks(refresher): callbacks = [Mock()] pgexecute_class = Mock() pgexecute = Mock() + pgexecute.extra_args = {} special = Mock() with patch('pgcli.completion_refresher.PGExecute', pgexecute_class): |