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 5810bf5 commit 0c729b9Copy full SHA for 0c729b9
tests/test_timeout.py
@@ -11,10 +11,10 @@
11
async def test_timeout(httpx_mock: HTTPXMock):
12
"""Test if the connection is hitting the timeout."""
13
14
- def raise_timeout(request, extensions: dict):
+ def raise_timeout(request):
15
"""Set the timeout for the requests."""
16
raise httpx.ReadTimeout(
17
- f"Unable to read within {extensions['timeout']}", request=request
+ f"Unable to read within {request.extensions['timeout']}", request=request
18
)
19
20
httpx_mock.add_callback(raise_timeout)
0 commit comments