From aa3451610520b7244df05b98d656da63855d157b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 17 May 2026 12:57:52 +0000 Subject: [PATCH] style: apply ruff auto-fix - Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] --- tests/test_url_upload.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_url_upload.py b/tests/test_url_upload.py index 66abc289..0d12239a 100644 --- a/tests/test_url_upload.py +++ b/tests/test_url_upload.py @@ -918,12 +918,14 @@ class TestURLUploadCoverageGaps: """Test that the local validate_redirect hook successfully aborts the request when redirect is unsafe""" import httpx - # The local validate_redirect hook intercepts 301/302 and throws an httpx.RequestError # Here we mock the behavior of that hook executing during the stream context def side_effect(*args, **kwargs): # Raise a simulated RequestError caused by validate_redirect - raise httpx.RequestError("Unsafe redirect target: Access to private IP addresses is not allowed", request=httpx.Request("GET", "http://example.com")) + raise httpx.RequestError( + "Unsafe redirect target: Access to private IP addresses is not allowed", + request=httpx.Request("GET", "http://example.com"), + ) mock_stream.side_effect = side_effect