MCPcopy
hub / github.com/encode/starlette / test_subdomain_route

Function test_subdomain_route

tests/test_applications.py:204–209  ·  view source on GitHub ↗
(test_client_factory: TestClientFactory)

Source from the content-addressed store, hash-verified

202
203
204def 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
212def test_websocket_route(client: TestClient) -> None:

Callers

nothing calls this directly

Calls 2

test_client_factoryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected