Skip to content

Commit

Permalink
'clientIp' is no longer set when using TestClient
Browse files Browse the repository at this point in the history
This was removed in encode/starlette#2377
  • Loading branch information
imjoehaines committed Jan 24, 2024
1 parent b22ab1f commit e02b68f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/integrations/test_asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ async def app(scope, recv, send):
self.assertEqual('GET', request['httpMethod'])
self.assertEqual('http', request['type'])
self.assertEqual('http://testserver/', request['url'])
self.assertEqual('testclient', request['clientIp'])
self.assertEqual('testclient', request['headers']['user-agent'])

exception = payload['events'][0]['exceptions'][0]
Expand Down

0 comments on commit e02b68f

Please sign in to comment.