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

Function test_request_error

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

Source from the content-addressed store, hash-verified

25
26
27async 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

Calls 1

containerMethod · 0.45

Tested by

no test coverage detected