(request: httpx.Request)
| 560 | sent: list[httpx.Request] = [] |
| 561 | |
| 562 | def answer(request: httpx.Request) -> httpx.Response: |
| 563 | sent.append(request) |
| 564 | return httpx.Response(200, json={}) |
| 565 | |
| 566 | transport = httpx.MockTransport(answer) |
| 567 | # A machine or OS proxy would mount a real transport ahead of the mock one. |