From 6912deed6f9fbddf26fcf4b52c5d7a30fb7b9b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= Date: Wed, 9 Oct 2024 15:44:58 +0500 Subject: [PATCH] remove offensive joke --- .../transport/httpx_transport/test_async_transport.py | 4 +++- tests/httptoolkit/transport/httpx_transport/test_transport.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/httptoolkit/transport/httpx_transport/test_async_transport.py b/tests/httptoolkit/transport/httpx_transport/test_async_transport.py index b68d506..b9ee2bc 100644 --- a/tests/httptoolkit/transport/httpx_transport/test_async_transport.py +++ b/tests/httptoolkit/transport/httpx_transport/test_async_transport.py @@ -269,7 +269,9 @@ async def test_send_post_request_error_json_and_files( async def test_send_post_request_error_json_and_body( async_transport: AsyncHttpxTransport, httpx_mock: HTTPXMock, test_file: BinaryIO ) -> None: - request = Request(HttpMethod.POST, "/", {}, body="Just another boring text for test!", json={"param1": 1, "param2": 2}) + request = Request( + HttpMethod.POST, "/", {}, body="Just another boring text for test!", json={"param1": 1, "param2": 2} + ) with pytest.raises(RuntimeError) as error: await async_transport.send(request) assert str(error.value) == "json and body can't be sent together" diff --git a/tests/httptoolkit/transport/httpx_transport/test_transport.py b/tests/httptoolkit/transport/httpx_transport/test_transport.py index 34f3bd7..e2efccc 100644 --- a/tests/httptoolkit/transport/httpx_transport/test_transport.py +++ b/tests/httptoolkit/transport/httpx_transport/test_transport.py @@ -305,7 +305,9 @@ def test_send_post_request_error_json_and_files( def test_send_post_request_error_json_and_body( transport: HttpxTransport, httpx_mock: HTTPXMock, test_file: BinaryIO ) -> None: - request = Request(HttpMethod.POST, "/", {}, body="Just another boring text for test!", json={"param1": 1, "param2": 2}) + request = Request( + HttpMethod.POST, "/", {}, body="Just another boring text for test!", json={"param1": 1, "param2": 2} + ) with pytest.raises(RuntimeError) as error: transport.send(request) assert str(error.value) == "json and body can't be sent together"