(test_client_factory: TestClientFactory)
| 204 | |
| 205 | |
| 206 | def test_request_raw_path(test_client_factory: TestClientFactory) -> None: |
| 207 | async def app(scope: Scope, receive: Receive, send: Send) -> None: |
| 208 | request = Request(scope, receive) |
| 209 | path = request.scope[class="st">"path"] |
| 210 | raw_path = request.scope[class="st">"raw_path"] |
| 211 | response = PlainTextResponse(fclass="st">"{path}, {raw_path}") |
| 212 | await response(scope, receive, send) |
| 213 | |
| 214 | client = test_client_factory(app) |
| 215 | response = client.get(class="st">"/he%2Fllo") |
| 216 | assert response.text == class="st">"/he/llo, b&class="cm">#x27;/he%2Fllo'" |
| 217 | |
| 218 | |
| 219 | def test_request_without_setting_receive( |
nothing calls this directly
no test coverage detected