(path: str, expected_raw_path: bytes)
| 151 | ], |
| 152 | ) |
| 153 | def test_make_test_scope_with_scope_base(path: str, expected_raw_path: bytes) -> None: |
| 154 | scope = make_test_scope( |
| 155 | "http", |
| 156 | path, |
| 157 | "GET", |
| 158 | Headers(), |
| 159 | b"", |
| 160 | "http", |
| 161 | "", |
| 162 | "1.1", |
| 163 | {"client": ("127.0.0.2", "1234")}, |
| 164 | ) |
| 165 | assert scope == { |
| 166 | "type": "http", |
| 167 | "http_version": "1.1", |
| 168 | "asgi": {"spec_version": "2.1"}, |
| 169 | "method": "GET", |
| 170 | "scheme": "http", |
| 171 | "path": path, |
| 172 | "raw_path": expected_raw_path, |
| 173 | "query_string": b"", |
| 174 | "root_path": "", |
| 175 | "headers": [], |
| 176 | "extensions": {}, |
| 177 | "_quart._preserve_context": False, |
| 178 | "client": ("127.0.0.2", "1234"), |
| 179 | } |
| 180 | |
| 181 | |
| 182 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…