Function
test_request_error
(client: dagger.Client, httpx_mock: HTTPXMock)
Source from the content-addressed store, hash-verified
| 25 | |
| 26 | |
| 27 | async def test_request_error(client: dagger.Client, httpx_mock: HTTPXMock): |
| 28 | msg = "Server disconnected without sending a response." |
| 29 | httpx_mock.add_exception(httpx.RemoteProtocolError(msg)) |
| 30 | |
| 31 | with pytest.raises(dagger.TransportError, match=msg): |
| 32 | await client.container() |
| 33 | |
| 34 | |
| 35 | @pytest.mark.parametrize( |
Callers
nothing calls this directly
Tested by
no test coverage detected