MCPcopy
hub / github.com/encode/httpx / test_elapsed_not_available_until_closed

Function test_elapsed_not_available_until_closed

tests/models/test_responses.py:770–777  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

768
769@pytest.mark.anyio
770async def test_elapsed_not_available_until_closed():
771 response = httpx.Response(
772 200,
773 content=async_streaming_body(),
774 )
775
776 with pytest.raises(RuntimeError):
777 response.elapsed # noqa: B018
778
779
780def test_unknown_status_code():

Callers

nothing calls this directly

Calls 1

async_streaming_bodyFunction · 0.85

Tested by

no test coverage detected