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

Method test_ssl_connection

tests/test_ssl.py:41–52  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

39 sslclient.close()
40
41 def test_ssl_connection(self, request):
42 ssl_url = request.config.option.redis_ssl_url
43 p = urlparse(ssl_url)[1].split(":")
44
45 r = redis.Redis(
46 host=p[0],
47 port=p[1],
48 ssl=True,
49 ssl_cert_reqs="none",
50 )
51 assert r.ping()
52 r.close()
53
54 def test_ssl_connection_without_ssl(self, request):
55 ssl_url = request.config.option.redis_ssl_url

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
pingMethod · 0.45

Tested by

no test coverage detected