We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de7a619 commit 499c107Copy full SHA for 499c107
tests/test_connection.py
@@ -10,10 +10,10 @@
10
async def test_timeout(httpx_mock: HTTPXMock):
11
"""Test if the connection is hitting the timeout."""
12
13
- def raise_timeout(request, extensions: dict):
+ def raise_timeout(request):
14
"""Set the timeout for the requests."""
15
raise httpx.ReadTimeout(
16
- f"Unable to read within {extensions['timeout']}", request=request
+ f"Unable to read within {request.extensions['timeout']}", request=request
17
)
18
19
httpx_mock.add_callback(raise_timeout)
0 commit comments