]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Pin httpx in `full` extra (#2773)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Sat, 30 Nov 2024 09:53:55 +0000 (10:53 +0100)
committerGitHub <noreply@github.com>
Sat, 30 Nov 2024 09:53:55 +0000 (10:53 +0100)
pyproject.toml
tests/middleware/test_wsgi.py
tests/test_requests.py

index 551a5a3add94e1d826f1446c645932c145b5f6db..f27646083821d3a0e02d4c1706912e5a9c73261d 100644 (file)
@@ -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]
index 58696bb65028b29494d86c2174660617a237c700..e4ac66ab4eefd4b9f5aace3a361fca4a513b4a4b 100644 (file)
@@ -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:
index f0494e7513b1f7f1d5f5f9c117856ffeb397e24c..665dceb87527cb326c1c25f743f07dd1116b065c 100644 (file)
@@ -91,7 +91,7 @@ def test_request_body(test_client_factory: TestClientFactory) -> 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"}
@@ -112,7 +112,7 @@ def test_request_stream(test_client_factory: TestClientFactory) -> 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"}