Skip to content

Commit 31056de

Browse files
authored
Fix for later pytest-httpx releases (#7)
* Bump dependencies * Fix for later pytest-httpx releases
1 parent c0e1175 commit 31056de

3 files changed

Lines changed: 39 additions & 98 deletions

File tree

poetry.lock

Lines changed: 35 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ python = "^3.8"
2222
httpx = ">=0.20,<1"
2323

2424
[tool.poetry.dev-dependencies]
25-
black = "^21.10b0"
25+
black = "^21.12b0"
2626
pytest = "^6.2.5"
27-
pytest-httpx = "^0.14.0"
27+
pytest-httpx = ">0.15,<1"
2828
pytest-asyncio = "^0.16.0"
2929
isort = "^5.10.0"
3030

tests/test_timeout.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)