(test_client_factory: TestClientFactory)
| 202 | |
| 203 | |
| 204 | def test_subdomain_route(test_client_factory: TestClientFactory) -> None: |
| 205 | client = test_client_factory(app, base_url="https://foo.example.org/") |
| 206 | |
| 207 | response = client.get("/") |
| 208 | assert response.status_code == 200 |
| 209 | assert response.text == "Subdomain: foo" |
| 210 | |
| 211 | |
| 212 | def test_websocket_route(client: TestClient) -> None: |
nothing calls this directly
no test coverage detected