(request: APIRequest, call_next: CallNext)
| 1344 | |
| 1345 | def test_construction_accepts_sync_middleware(self) -> None: |
| 1346 | def sync_fn(request: APIRequest, call_next: CallNext) -> Any: |
| 1347 | return call_next(request) |
| 1348 | |
| 1349 | client = make_sync_client(middleware=[SyncOnlyMiddleware(), RecordingMiddleware(), sync_fn]) |
| 1350 | assert len(client._middleware) == 3 |
nothing calls this directly
no outgoing calls
no test coverage detected