From 55c8602b9f741397ab53a77c15ddda96290ca982 Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Sat, 16 Dec 2023 15:37:22 +0100 Subject: [PATCH] Remove client scope from testclient --- starlette/testclient.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/starlette/testclient.py b/starlette/testclient.py index 04ac90a057..a1ab6ff6d3 100644 --- a/starlette/testclient.py +++ b/starlette/testclient.py @@ -245,7 +245,6 @@ def handle_request(self, request: httpx.Request) -> httpx.Response: "scheme": scheme, "query_string": query.encode(), "headers": headers, - "client": ["testclient", 50000], "server": [host, port], "subprotocols": subprotocols, "state": self.app_state.copy(), @@ -263,7 +262,6 @@ def handle_request(self, request: httpx.Request) -> httpx.Response: "scheme": scheme, "query_string": query.encode(), "headers": headers, - "client": ["testclient", 50000], "server": [host, port], "extensions": {"http.response.debug": {}}, "state": self.app_state.copy(),