(test_client_factory: TestClientFactory)
| 279 | |
| 280 | |
| 281 | def test_middleware(test_client_factory: TestClientFactory) -> None: |
| 282 | client = test_client_factory(app, base_url="http://incorrecthost") |
| 283 | response = client.get("/func") |
| 284 | assert response.status_code == 400 |
| 285 | assert response.text == "Invalid host header" |
| 286 | |
| 287 | |
| 288 | def test_routes() -> None: |
nothing calls this directly
no test coverage detected