Skip to content

Commit 0c729b9

Browse files
committed
Fix for later pytest-httpx releases
1 parent 5810bf5 commit 0c729b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_timeout.py

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

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

2020
httpx_mock.add_callback(raise_timeout)

0 commit comments

Comments
 (0)