diff --git a/tests/unit/test_connection/test_request.py b/tests/unit/test_connection/test_request.py index 688f5250a7..930df71f34 100644 --- a/tests/unit/test_connection/test_request.py +++ b/tests/unit/test_connection/test_request.py @@ -241,7 +241,7 @@ async def handler(request: Request) -> bytes: 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("/", content="abc") assert response.json() == {"body": "abc"} @@ -260,7 +260,7 @@ async def handler(request: Request) -> bytes: 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("/", content="abc") assert response.json() == {"body": "abc"}