File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ def __init__(
4141 pool_connections = pool_connections ,
4242 pool_maxsize = pool_maxsize ,
4343 )
44- self ._session .mount ("http://" , adapter )
4544 self ._session .mount ("https://" , adapter )
4645
4746 def get (self , url : str , ** kwargs : Any ) -> Response :
Original file line number Diff line number Diff line change @@ -12,20 +12,20 @@ def test_api_session_get_uses_timeout(mocker: MockerFixture) -> None:
1212 session_instance .get .return_value = mock_response
1313
1414 api_session = ApiSession (timeout = 15 )
15- response = api_session .get ("http ://example.com/api" )
15+ response = api_session .get ("https ://example.com/api" )
1616
1717 assert response == mock_response
18- session_instance .get .assert_called_once_with ("http ://example.com/api" , timeout = 15 )
18+ session_instance .get .assert_called_once_with ("https ://example.com/api" , timeout = 15 )
1919
2020
2121def test_api_session_get_overrides_timeout (mocker : MockerFixture ) -> None :
2222 session_mock = mocker .patch ("templates.eventbridge.session.Session" )
2323 session_instance = session_mock .return_value
2424
2525 api_session = ApiSession (timeout = 10 )
26- api_session .get ("http ://example.com/api" , timeout = 5 )
26+ api_session .get ("https ://example.com/api" , timeout = 5 )
2727
28- session_instance .get .assert_called_once_with ("http ://example.com/api" , timeout = 5 )
28+ session_instance .get .assert_called_once_with ("https ://example.com/api" , timeout = 5 )
2929
3030
3131if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments