File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ def _assert_expected_requests_occurred(conn: SnowflakeConnection) -> None:
233233def 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 )
You can’t perform that action at this time.
0 commit comments