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

Function test_bad_response

sdk/python/tests/client/test_execute_errors.py:43–51  ·  view source on GitHub ↗
(
    response: httpx.Response,
    client: dagger.Client,
    httpx_mock: HTTPXMock,
)

Source from the content-addressed store, hash-verified

41 ],
42)
43async def test_bad_response(
44 response: httpx.Response,
45 client: dagger.Client,
46 httpx_mock: HTTPXMock,
47):
48 httpx_mock.add_callback(lambda _: response)
49
50 with pytest.raises(dagger.TransportError, match="Unexpected response"):
51 await client.container()
52
53
54async def test_good_response_data(client: dagger.Client, httpx_mock: HTTPXMock):

Callers

nothing calls this directly

Calls 1

containerMethod · 0.45

Tested by

no test coverage detected