(client: TestClient)
| 168 | |
| 169 | |
| 170 | def test_func_route(client: TestClient) -> None: |
| 171 | response = client.get("/func") |
| 172 | assert response.status_code == 200 |
| 173 | assert response.text == "Hello, world!" |
| 174 | |
| 175 | response = client.head("/func") |
| 176 | assert response.status_code == 200 |
| 177 | assert response.text == "" |
| 178 | |
| 179 | |
| 180 | def test_async_route(client: TestClient) -> None: |