Skip to content

Commit

Permalink
use pytest_httbin.certs.where() for cafile
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Sep 18, 2024
1 parent 2b3247b commit f5597fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/integration/test_aiohttp.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import logging
import os
import ssl
import urllib.parse

import pytest
import pytest_httpbin.certs

import vcr

Expand All @@ -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):
Expand Down

0 comments on commit f5597fa

Please sign in to comment.