Skip to content

Commit

Permalink
remove offensive joke
Browse files Browse the repository at this point in the history
  • Loading branch information
Станислав Михайлов committed Oct 9, 2024
1 parent 2e35012 commit 6912dee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6912dee

Please sign in to comment.