Skip to content

Commit e7f6e36

Browse files
SNOW-2043816: recheck
1 parent 2672e22 commit e7f6e36

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

test/integ/test_http_interceptor.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def _assert_expected_requests_occurred(conn: SnowflakeConnection) -> None:
233233
def test_interceptor_detects_expected_requests_in_successful_multipart_put_get(
234234
tmp_path: pathlib.Path,
235235
static_collecting_customizer,
236+
dynamic_collecting_customizer,
236237
conn_cnx,
237238
current_provider,
238239
):
@@ -300,6 +301,23 @@ def _assert_expected_requests_occurred_multipart(
300301
conn = conn_cnx(
301302
headers_customizers=[
302303
static_collecting_customizer,
304+
dynamic_collecting_customizer,
303305
]
304306
)
305-
_assert_expected_requests_occurred_multipart(conn)
307+
try:
308+
_assert_expected_requests_occurred_multipart(conn)
309+
except AssertionError as ex:
310+
list_of_inv = (
311+
str(ex)
312+
+ "\n\n"
313+
+ str(
314+
"\n".join(
315+
map(
316+
lambda r: f"{r.method} {r.url}",
317+
dynamic_collecting_customizer.invocations,
318+
)
319+
)
320+
)
321+
)
322+
print(list_of_inv)
323+
raise AssertionError(list_of_inv)

0 commit comments

Comments
 (0)