MCPcopy
hub / github.com/encode/starlette / post_body

Function post_body

tests/test_requests.py:497–499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

495 client = test_client_factory(app)
496
497 def post_body() -> Iterator[bytes]:
498 yield b"foo"
499 yield b"bar"
500
501 response = client.post("/", data=post_body()) # type: ignore
502 assert response.json() == {"body": "foobar"}

Callers 1

test_chunked_encodingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected