MCPcopy Create free account
hub / github.com/dagger/dagger / test_timeout

Function test_timeout

sdk/python/tests/client/test_execute_errors.py:19–24  ·  view source on GitHub ↗
(client: dagger.Client, httpx_mock: HTTPXMock)

Source from the content-addressed store, hash-verified

17
18
19async 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
27async def test_request_error(client: dagger.Client, httpx_mock: HTTPXMock):

Callers

nothing calls this directly

Calls 1

containerMethod · 0.45

Tested by

no test coverage detected