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

Function test_head_method

tests/test_responses.py:524–528  ·  view source on GitHub ↗
(test_client_factory: TestClientFactory)

Source from the content-addressed store, hash-verified

522
523
524def test_head_method(test_client_factory: TestClientFactory) -> None:
525 app = Response("hello, world", media_type="text/plain")
526 client = test_client_factory(app)
527 response = client.head("/")
528 assert response.text == ""
529
530
531def test_empty_response(test_client_factory: TestClientFactory) -> None:

Callers

nothing calls this directly

Calls 3

ResponseClass · 0.90
test_client_factoryFunction · 0.85
headMethod · 0.80

Tested by

no test coverage detected