MCPcopy
hub / github.com/encode/starlette / test_file_response_range_head_max

Function test_file_response_range_head_max

tests/test_responses.py:790–792  ·  view source on GitHub ↗
(file_response_client: TestClient)

Source from the content-addressed store, hash-verified

788
789
790def test_file_response_range_head_max(file_response_client: TestClient) -> None:
791 response = file_response_client.head("/", headers={"Range": f"bytes=0-{len(README.encode('utf8')) + 1}"})
792 assert response.status_code == 206
793
794
795def test_file_response_range_416(file_response_client: TestClient) -> None:

Callers

nothing calls this directly

Calls 1

headMethod · 0.80

Tested by

no test coverage detected