(self, request)
| 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.""" |