Function
test_bad_response
(
response: httpx.Response,
client: dagger.Client,
httpx_mock: HTTPXMock,
)
Source from the content-addressed store, hash-verified
| 41 | ], |
| 42 | ) |
| 43 | async 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 | |
| 54 | async def test_good_response_data(client: dagger.Client, httpx_mock: HTTPXMock): |
Callers
nothing calls this directly
Tested by
no test coverage detected