Function
test_asgi_version
(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")]) |
| 297 | def 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
Tested by
no test coverage detected