Function
test_timeout
(client: dagger.Client, httpx_mock: HTTPXMock)
Source from the content-addressed store, hash-verified
| 17 | |
| 18 | |
| 19 | async def test_timeout(client: dagger.Client, httpx_mock: HTTPXMock): |
| 20 | msg = "Request took too long" |
| 21 | httpx_mock.add_exception(httpx.ReadTimeout(msg)) |
| 22 | |
| 23 | with pytest.raises(dagger.TransportError, match=msg): |
| 24 | await client.container() |
| 25 | |
| 26 | |
| 27 | async def test_request_error(client: dagger.Client, httpx_mock: HTTPXMock): |
Callers
nothing calls this directly
Tested by
no test coverage detected