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

Function test_file_response_range_invalid

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

Source from the content-addressed store, hash-verified

783
784
785def test_file_response_range_invalid(file_response_client: TestClient) -> None:
786 response = file_response_client.head("/", headers={"Range": "bytes: 0-1000"})
787 assert response.status_code == 400
788
789
790def test_file_response_range_head_max(file_response_client: TestClient) -> None:

Callers

nothing calls this directly

Calls 1

headMethod · 0.80

Tested by

no test coverage detected