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

Function test_asgi_version

tests/test_config.py:297–300  ·  view source on GitHub ↗
(app: ASGIApplication, expected_interface: Literal["2.0", "3.0"])

Source from the content-addressed store, hash-verified

295
296@pytest.mark.parametrize("app, expected_interface", [(asgi_app, "3.0"), (asgi2_app, "2.0")])
297def test_asgi_version(app: ASGIApplication, expected_interface: Literal["2.0", "3.0"]) -> None:
298 config = Config(app=app)
299 config.load()
300 assert config.asgi_version == expected_interface
301
302
303@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected