()
| 307 | |
| 308 | |
| 309 | def test_http_asgi_scope_from_request() -> None: |
| 310 | app = Quart(__name__) |
| 311 | scope = { |
| 312 | "headers": [(b"host", b"quart")], |
| 313 | "http_version": "1.0", |
| 314 | "method": "GET", |
| 315 | "scheme": "https", |
| 316 | "path": "/", |
| 317 | "query_string": b"", |
| 318 | "test_result": "PASSED", |
| 319 | } |
| 320 | connection = ASGIHTTPConnection(app, scope) # type: ignore |
| 321 | request = connection._create_request_from_scope(lambda: None) # type: ignore |
| 322 | assert request.scope["test_result"] == "PASSED" # type: ignore |
| 323 | |
| 324 | |
| 325 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…