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

Function test_good_response_data

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

Source from the content-addressed store, hash-verified

52
53
54async def test_good_response_data(client: dagger.Client, httpx_mock: HTTPXMock):
55 httpx_mock.add_response(json={"data": {"container": {"id": "spam"}}})
56
57 res = await client.container().id()
58
59 assert res == "spam"
60
61
62async def test_query_error(client: dagger.Client, httpx_mock: HTTPXMock):

Callers

nothing calls this directly

Calls 2

idMethod · 0.65
containerMethod · 0.45

Tested by

no test coverage detected