File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -351,12 +351,17 @@ def test_upload_screenshots_uploads_in_parallel(self):
351351 assert mock_post .called
352352
353353 # Verify uploads were called (2 screenshots)
354- assert mock_put .call_count == 2
354+ # Filter PUT calls to only screenshot uploads (exclude trace file uploads)
355+ put_calls = mock_put .call_args_list
356+ screenshot_uploads = [
357+ call for call in put_calls if "screenshots" in str (call [0 ][0 ] if call [0 ] else "" )
358+ ]
359+ assert len (screenshot_uploads ) == 2
355360
356361 # Verify upload URLs and content
357- put_calls = mock_put . call_args_list
358- assert mock_upload_urls ["1" ] in [ call [ 0 ][ 0 ] for call in put_calls ]
359- assert mock_upload_urls ["2" ] in [ call [ 0 ][ 0 ] for call in put_calls ]
362+ upload_urls = [ call [ 0 ][ 0 ] for call in screenshot_uploads ]
363+ assert mock_upload_urls ["1" ] in upload_urls
364+ assert mock_upload_urls ["2" ] in upload_urls
360365
361366 sink .close (blocking = False )
362367
You can’t perform that action at this time.
0 commit comments