(
responder: Callable[[httpx.Request], httpx.Response],
)
| 29 | """ |
| 30 | |
| 31 | def factory( |
| 32 | responder: Callable[[httpx.Request], httpx.Response], |
| 33 | ) -> tuple[httpx.MockTransport, list[httpx.Request]]: |
| 34 | captured: list[httpx.Request] = [] |
| 35 | |
| 36 | def handler(request: httpx.Request) -> httpx.Response: |
| 37 | captured.append(request) |
| 38 | return responder(request) |
| 39 | |
| 40 | return httpx.MockTransport(handler), captured |
| 41 | |
| 42 | return factory |
nothing calls this directly
no outgoing calls
no test coverage detected