(test_client_factory: TestClientFactory)
| 545 | |
| 546 | |
| 547 | def test_non_empty_response(test_client_factory: TestClientFactory) -> None: |
| 548 | app = Response(content="hi") |
| 549 | client: TestClient = test_client_factory(app) |
| 550 | response = client.get("/") |
| 551 | assert response.headers["content-length"] == "2" |
| 552 | |
| 553 | |
| 554 | def test_response_do_not_add_redundant_charset( |
nothing calls this directly
no test coverage detected