(request: APIRequest, call_next: AsyncCallNext)
| 2139 | |
| 2140 | def test_construction_accepts_async_middleware(self) -> None: |
| 2141 | async def async_fn(request: APIRequest, call_next: AsyncCallNext) -> Any: |
| 2142 | return await call_next(request) |
| 2143 | |
| 2144 | client = make_async_client(middleware=[AsyncOnlyMiddleware(), RecordingMiddleware(), async_fn]) |
| 2145 | assert len(client._middleware) == 3 |
nothing calls this directly
no outgoing calls
no test coverage detected