MCPcopy
hub / github.com/redis/redis-py / _get_client

Method _get_client

tests/test_asyncio/test_ssl.py:28–33  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

26
27 @pytest_asyncio.fixture()
28 async def _get_client(self, request):
29 ssl_url = request.config.option.redis_ssl_url
30 p = urlparse(ssl_url)[1].split(":")
31 client = redis.Redis(host=p[0], port=p[1], ssl=True)
32 yield client
33 await client.aclose()
34
35 async def test_ssl_with_invalid_cert(self, _get_client):
36 """Test SSL connection with invalid certificate."""

Callers

nothing calls this directly

Calls 1

acloseMethod · 0.95

Tested by

no test coverage detected