Skip to content

Commit dd0ae4f

Browse files
SNOW-2043816: put update
1 parent 2637a42 commit dd0ae4f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/integ/test_http_interceptor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ def assert_expected_requests_occurred(
181181

182182
@pytest.mark.skipolddriver
183183
def test_interceptor_detects_expected_requests_in_successful_flow_put_get(
184-
request,
185184
tmp_path: pathlib.Path,
186185
static_collecting_customizer,
187186
conn_cnx,
@@ -232,7 +231,6 @@ def _assert_expected_requests_occurred(conn: SnowflakeConnection) -> None:
232231
@pytest.mark.azure
233232
@pytest.mark.skipolddriver
234233
def test_interceptor_detects_expected_requests_in_successful_multipart_put_get(
235-
request,
236234
tmp_path: pathlib.Path,
237235
static_collecting_customizer,
238236
conn_cnx,

test/test_utils/http_test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def assert_aws_get_accelerate_issued(
207207
ExpectedRequestInfo("GET", r".*\.s3\.amazonaws.*/\?accelerate(.*)?"),
208208
raise_on_missing=not optional,
209209
)
210-
self._assert_headers_were_added(rv.headers, expected_headers)
210+
if rv is not None:
211+
self._assert_headers_were_added(rv.headers, expected_headers)
211212
return rv
212213

213214
def assert_get_file_issued(

0 commit comments

Comments
 (0)