MCPcopy
hub / github.com/encode/uvicorn / test_proxy_headers

Function test_proxy_headers

tests/test_config.py:200–205  ·  tests/test_config.py::test_proxy_headers
()

Source from the content-addressed store, hash-verified

198
199
200def test_proxy_headers() -> None:
201 config = Config(app=asgi_app)
202 config.load()
203
204 assert config.proxy_headers is True
205 assert isinstance(config.loaded_app, ProxyHeadersMiddleware)
206
207
208def test_app_unimportable_module() -> None:

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected