Skip to content

Commit

Permalink
Pin httpx in full extra (#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Nov 30, 2024
1 parent 0ba8395 commit 5ccbc62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ full = [
"jinja2",
"python-multipart>=0.0.18",
"pyyaml",
"httpx>=0.22.0",
"httpx>=0.27.0,<0.29.0",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion tests/middleware/test_wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_wsgi_post(test_client_factory: TestClientFactory) -> None:
client = test_client_factory(app)
response = client.post("/", json={"example": 123})
assert response.status_code == 200
assert response.text == '{"example": 123}'
assert response.text == '{"example":123}'


def test_wsgi_exception(test_client_factory: TestClientFactory) -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def app(scope: Scope, receive: Receive, send: Send) -> None:
assert response.json() == {"body": ""}

response = client.post("/", json={"a": "123"})
assert response.json() == {"body": '{"a": "123"}'}
assert response.json() == {"body": '{"a":"123"}'}

response = client.post("/", data="abc") # type: ignore
assert response.json() == {"body": "abc"}
Expand All @@ -112,7 +112,7 @@ async def app(scope: Scope, receive: Receive, send: Send) -> None:
assert response.json() == {"body": ""}

response = client.post("/", json={"a": "123"})
assert response.json() == {"body": '{"a": "123"}'}
assert response.json() == {"body": '{"a":"123"}'}

response = client.post("/", data="abc") # type: ignore
assert response.json() == {"body": "abc"}
Expand Down

0 comments on commit 5ccbc62

Please sign in to comment.