Skip to content

Commit

Permalink
Fix httpx exception in test
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz committed Feb 18, 2025
1 parent c188759 commit a79e330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_httpx_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ async def test_httpx_query_https_self_cert_fail(
):
from aiohttp import web
from gql.transport.httpx import HTTPXAsyncTransport
from ssl import SSLCertVerificationError
from httpx import ConnectError

async def handler(request):
return web.Response(text=query1_server_answer, content_type="application/json")
Expand All @@ -1235,7 +1235,7 @@ async def handler(request):

transport = HTTPXAsyncTransport(url=url, timeout=10, **extra_args)

with pytest.raises(SSLCertVerificationError) as exc_info:
with pytest.raises(ConnectError) as exc_info:
async with Client(transport=transport) as session:

query = gql(query1_str)
Expand Down

0 comments on commit a79e330

Please sign in to comment.