From ab13f940d02f2ccd2b8f64ea87d6be37000eecbe Mon Sep 17 00:00:00 2001 From: Richard Schwab Date: Sat, 27 Aug 2022 21:17:17 +0200 Subject: [PATCH] pass ssl context in SA tests --- tests/sa/test_sa_compiled_cache.py | 2 ++ tests/sa/test_sa_default.py | 2 ++ tests/sa/test_sa_engine.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/tests/sa/test_sa_compiled_cache.py b/tests/sa/test_sa_compiled_cache.py index 082ba53b..1f28ddb7 100644 --- a/tests/sa/test_sa_compiled_cache.py +++ b/tests/sa/test_sa_compiled_cache.py @@ -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'], diff --git a/tests/sa/test_sa_default.py b/tests/sa/test_sa_default.py index 6a20b8da..7d53173e 100644 --- a/tests/sa/test_sa_default.py +++ b/tests/sa/test_sa_default.py @@ -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'], diff --git a/tests/sa/test_sa_engine.py b/tests/sa/test_sa_engine.py index 1833e6c6..ddc1151b 100644 --- a/tests/sa/test_sa_engine.py +++ b/tests/sa/test_sa_engine.py @@ -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'],