Skip to content

Commit

Permalink
pass ssl context in SA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nothing4You committed Aug 27, 2022
1 parent bafc4ed commit ab13f94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/sa/test_sa_compiled_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ async def _make_engine(**kwargs):
"host": mysql_params['host'],
"port": mysql_params['port'],
}
if "ssl" in mysql_params:
conn_args["ssl"] = mysql_params["ssl"]

engine = await sa.create_engine(
db=mysql_params['db'],
Expand Down
2 changes: 2 additions & 0 deletions tests/sa/test_sa_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ async def _make_engine(**kwargs):
"host": mysql_params['host'],
"port": mysql_params['port'],
}
if "ssl" in mysql_params:
conn_args["ssl"] = mysql_params["ssl"]

engine = await sa.create_engine(
db=mysql_params['db'],
Expand Down
2 changes: 2 additions & 0 deletions tests/sa/test_sa_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ async def _make_engine(**kwargs):
"host": mysql_params['host'],
"port": mysql_params['port'],
}
if "ssl" in mysql_params:
conn_args["ssl"] = mysql_params["ssl"]

engine = await sa.create_engine(
db=mysql_params['db'],
Expand Down

0 comments on commit ab13f94

Please sign in to comment.