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

Function test_wsgi_app

tests/test_config.py:191–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190
191def test_wsgi_app() -> None:
192 config = Config(app=wsgi_app, interface="wsgi", proxy_headers=False)
193 config.load()
194
195 assert isinstance(config.loaded_app, WSGIMiddleware)
196 assert config.interface == "wsgi"
197 assert config.asgi_version == "3.0"
198
199
200def test_proxy_headers() -> None:

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected