| 16 | |
| 17 | |
| 18 | class _ImmediateFailingClient: |
| 19 | is_closed = False |
| 20 | |
| 21 | async def post(self, *args, **kwargs): |
| 22 | raise httpx.ConnectError("connection refused") |
| 23 | |
| 24 | def build_request(self, *args, **kwargs): |
| 25 | raise httpx.ConnectError("connection refused") |
| 26 | |
| 27 | async def send(self, *args, **kwargs): |
| 28 | raise httpx.ConnectError("connection refused") |
| 29 | |
| 30 | |
| 31 | @pytest.fixture |
no outgoing calls