Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf1d28b4

Browse files
author
vshepard
committed
Add env variable TESTGRES_SKIP_SSL
1 parent1e8d912 commitf1d28b4

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
importgetpass
22
importlocale
3+
importos
34
importsys
45

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

1314

1415
classConnectionParams:
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 connectionto databaseis 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+
ifskip_sslisNone:
26+
skip_ssl=os.getenv("TESTGRES_SKIP_SSL",False)
2427
self.skip_ssl=skip_ssl
2528

2629

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp