(scope: Scope, receive: Receive, send: Send)
| 776 | @pytest.mark.anyio |
| 777 | async def test_read_request_stream_in_dispatch_wrapping_app_calls_body() -> None: |
| 778 | async def endpoint(scope: Scope, receive: Receive, send: Send) -> None: |
| 779 | request = Request(scope, receive) |
| 780 | async for chunk in request.stream(): # pragma: no branch |
| 781 | assert chunk == b"2" |
| 782 | break |
| 783 | await Response()(scope, receive, send) |
| 784 | |
| 785 | class ConsumingMiddleware(BaseHTTPMiddleware): |
| 786 | async def dispatch( |