File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
unit_tests/sources/streams/http Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -746,6 +746,7 @@ def test_given_different_headers_then_response_is_not_cached(requests_mock):
746746
747747 assert second_response .json ()["test" ] == "second response"
748748
749+
749750@patch .dict ("os.environ" , {"REQUESTS_CA_BUNDLE" : "/path/to/ca-bundle.crt" })
750751def test_send_request_respects_environment_variables ():
751752 """Test that send_request respects REQUESTS_CA_BUNDLE environment variable."""
@@ -754,14 +755,12 @@ def test_send_request_respects_environment_variables():
754755 logger = MagicMock (),
755756 )
756757
757- with patch .object (http_client , ' _send_with_retry' ) as mock_send_with_retry :
758+ with patch .object (http_client , " _send_with_retry" ) as mock_send_with_retry :
758759 http_client .send_request (
759- http_method = "GET" ,
760- url = "https://api.example.com" ,
761- request_kwargs = {"timeout" : 10 }
760+ http_method = "GET" , url = "https://api.example.com" , request_kwargs = {"timeout" : 10 }
762761 )
763-
762+
764763 passed_kwargs = mock_send_with_retry .call_args [1 ]["request_kwargs" ]
765-
764+
766765 assert "verify" in passed_kwargs
767766 assert passed_kwargs ["verify" ] == "/path/to/ca-bundle.crt"
You can’t perform that action at this time.
0 commit comments