(test_client_factory: TestClientFactory)
| 513 | |
| 514 | |
| 515 | def test_populate_headers(test_client_factory: TestClientFactory) -> None: |
| 516 | app = Response(content="hi", headers={}, media_type="text/html") |
| 517 | client = test_client_factory(app) |
| 518 | response = client.get("/") |
| 519 | assert response.text == "hi" |
| 520 | assert response.headers["content-length"] == "2" |
| 521 | assert response.headers["content-type"] == "text/html; charset=utf-8" |
| 522 | |
| 523 | |
| 524 | def test_head_method(test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected