Skip to content

Commit

Permalink
updates async test to skip if SSL not installed
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Miller <[email protected]>
  • Loading branch information
kjaymiller authored and ahmedsobeh committed Jul 6, 2024
1 parent 5a7e4ca commit 47029c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_asyncio/test_connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from tests.conftest import skip_if_server_version_lt
from valkey._parsers.url_parser import to_bool
from valkey.asyncio.connection import Connection
from valkey.utils import SSL_AVAILABLE


from .compat import aclosing, mock
from .conftest import asynccontextmanager
Expand Down Expand Up @@ -541,7 +543,7 @@ def test_extra_querystring_options(self):
assert pool.connection_class == valkey.UnixDomainSocketConnection
assert pool.connection_kwargs == {"path": "/socket", "a": "1", "b": "2"}


@pytest.mark.skipif(not SSL_AVAILABLE, reason="SSL not installed")
class TestSSLConnectionURLParsing:
def test_host(self):
pool = valkey.ConnectionPool.from_url("valkeys://my.host")
Expand Down

0 comments on commit 47029c0

Please sign in to comment.