Skip to content

Commit f1d28b4

Browse files
author
vshepard
committed
Add env variable TESTGRES_SKIP_SSL
1 parent 1e8d912 commit f1d28b4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

testgres/operations/os_ops.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import getpass
22
import locale
3+
import os
34
import sys
45

56
try:
@@ -12,15 +13,17 @@
1213

1314

1415
class ConnectionParams:
15-
def __init__(self, host='127.0.0.1', port=None, ssh_key=None, username=None, remote=False, skip_ssl=False):
16+
def __init__(self, host='127.0.0.1', port=None, ssh_key=None, username=None, remote=False, skip_ssl=None):
1617
"""
17-
skip_ssl: if is True, the connection is established without SSL.
18+
skip_ssl: if is True, the connection to database is established without SSL.
1819
"""
1920
self.remote = remote
2021
self.host = host
2122
self.port = port
2223
self.ssh_key = ssh_key
2324
self.username = username
25+
if skip_ssl is None:
26+
skip_ssl = os.getenv("TESTGRES_SKIP_SSL", False)
2427
self.skip_ssl = skip_ssl
2528

2629

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy