(test_client_factory: TestClientFactory)
| 199 | |
| 200 | |
| 201 | def test_response_phrase(test_client_factory: TestClientFactory) -> None: |
| 202 | app = Response(status_code=204) |
| 203 | client = test_client_factory(app) |
| 204 | response = client.get("/") |
| 205 | assert response.reason_phrase == "No Content" |
| 206 | |
| 207 | app = Response(b"", status_code=123) |
| 208 | client = test_client_factory(app) |
| 209 | response = client.get("/") |
| 210 | assert response.reason_phrase == "" |
| 211 | |
| 212 | |
| 213 | def test_file_response(tmp_path: Path, test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected