Skip to content

Commit e31ace0

Browse files
committed
unit test
Signed-off-by: Filipe Pina <[email protected]>
1 parent f308948 commit e31ace0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test_opensearchpy/test_connection/test_requests_http_connection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ def test_http_auth_list(self) -> None:
222222
con = RequestsHttpConnection(http_auth=["username", "secret"])
223223
self.assertEqual(("username", "secret"), con.session.auth)
224224

225+
def test_proxies(self) -> None:
226+
con = RequestsHttpConnection(proxies={"http": "http://localhost:8118"})
227+
self.assertEqual({"http": "http://localhost:8118"}, con.session.proxies)
228+
225229
def test_repr(self) -> None:
226230
con = self._get_mock_connection({"host": "opensearchpy.com", "port": 443})
227231
self.assertEqual(

0 commit comments

Comments
 (0)