mirror of https://github.com/tiangolo/fastapi.git
⬆ Update httpx requirement to >=0.23.0,<0.29.0 (#13114)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
106a4338db
commit
54c7c34b25
|
|
@ -1,4 +1,4 @@
|
|||
# For mkdocstrings and tests
|
||||
httpx >=0.23.0,<0.28.0
|
||||
httpx >=0.23.0,<0.29.0
|
||||
# For linting and generating docs versions
|
||||
ruff ==0.11.2
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
PyGithub>=2.3.0,<3.0.0
|
||||
pydantic>=2.5.3,<3.0.0
|
||||
pydantic-settings>=2.1.0,<3.0.0
|
||||
httpx>=0.27.0,<0.28.0
|
||||
httpx>=0.27.0,<0.29.0
|
||||
pyyaml >=5.3.1,<7.0.0
|
||||
smokeshow
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from dirty_equals import IsDict
|
||||
from dirty_equals import IsDict, IsOneOf
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from docs_src.custom_request_and_route.tutorial002 import app
|
||||
|
|
@ -24,14 +24,16 @@ def test_exception_handler_body_access():
|
|||
"input": {"numbers": [1, 2, 3]},
|
||||
}
|
||||
],
|
||||
"body": '{"numbers": [1, 2, 3]}',
|
||||
# httpx 0.28.0 switches to compact JSON https://github.com/encode/httpx/issues/3363
|
||||
"body": IsOneOf('{"numbers": [1, 2, 3]}', '{"numbers":[1,2,3]}'),
|
||||
}
|
||||
}
|
||||
) | IsDict(
|
||||
# TODO: remove when deprecating Pydantic v1
|
||||
{
|
||||
"detail": {
|
||||
"body": '{"numbers": [1, 2, 3]}',
|
||||
# httpx 0.28.0 switches to compact JSON https://github.com/encode/httpx/issues/3363
|
||||
"body": IsOneOf('{"numbers": [1, 2, 3]}', '{"numbers":[1,2,3]}'),
|
||||
"errors": [
|
||||
{
|
||||
"loc": ["body"],
|
||||
|
|
|
|||
Loading…
Reference in New Issue