(request: APIRequest, call_next: AsyncCallNext)
| 1879 | |
| 1880 | def test_construction_accepts_async_middleware(self) -> None: |
| 1881 | async def async_fn(request: APIRequest, call_next: AsyncCallNext) -> Any: |
| 1882 | return await call_next(request) |
| 1883 | |
| 1884 | client = make_async_client(middleware=[AsyncOnlyMiddleware(), RecordingMiddleware(), async_fn]) |
| 1885 | assert len(client._middleware) == 3 |
nothing calls this directly
no outgoing calls
no test coverage detected