(test_client_factory: TestClientFactory)
| 30 | |
| 31 | |
| 32 | def test_request_query_params(test_client_factory: TestClientFactory) -> None: |
| 33 | async def app(scope: Scope, receive: Receive, send: Send) -> None: |
| 34 | request = Request(scope, receive) |
| 35 | params = dict(request.query_params) |
| 36 | response = JSONResponse({class="st">"params": params}) |
| 37 | await response(scope, receive, send) |
| 38 | |
| 39 | client = test_client_factory(app) |
| 40 | response = client.get(class="st">"/?a=123&b=456") |
| 41 | assert response.json() == {class="st">"params": {class="st">"a": class="st">"123", class="st">"b": class="st">"456"}} |
| 42 | |
| 43 | |
| 44 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected