Skip to content

Commit 98a7921

Browse files
author
octavia-squidington-iii
committed
Auto-fix lint and format issues
1 parent c2d0351 commit 98a7921

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

unit_tests/sources/streams/http/test_http_client.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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"})
750751
def 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"

0 commit comments

Comments
 (0)