From f5597fa6c16db892f45d7ca4c0485eaeff2854ff Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 18 Sep 2024 22:36:17 +0100 Subject: [PATCH] use pytest_httbin.certs.where() for cafile --- tests/integration/test_aiohttp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_aiohttp.py b/tests/integration/test_aiohttp.py index ba8a7e37..97a489b8 100644 --- a/tests/integration/test_aiohttp.py +++ b/tests/integration/test_aiohttp.py @@ -1,9 +1,9 @@ import logging -import os import ssl import urllib.parse import pytest +import pytest_httpbin.certs import vcr @@ -13,9 +13,7 @@ from .aiohttp_utils import aiohttp_app, aiohttp_request # noqa: E402 -ssl_ca_location = os.environ["REQUESTS_CA_BUNDLE"] - -HTTPBIN_SSL_CONTEXT = ssl.create_default_context(cafile=ssl_ca_location) +HTTPBIN_SSL_CONTEXT = ssl.create_default_context(cafile=pytest_httpbin.certs.where()) def run_in_loop(fn):