Skip to content

Commit 499c107

Browse files
committed
Fix for later pytest-httpx releases
1 parent de7a619 commit 499c107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
async def test_timeout(httpx_mock: HTTPXMock):
1111
"""Test if the connection is hitting the timeout."""
1212

13-
def raise_timeout(request, extensions: dict):
13+
def raise_timeout(request):
1414
"""Set the timeout for the requests."""
1515
raise httpx.ReadTimeout(
16-
f"Unable to read within {extensions['timeout']}", request=request
16+
f"Unable to read within {request.extensions['timeout']}", request=request
1717
)
1818

1919
httpx_mock.add_callback(raise_timeout)

0 commit comments

Comments
 (0)