Skip to content

Commit f45d1f1

Browse files
committed
fix
1 parent ef6ebf0 commit f45d1f1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/test_screenshot_storage.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)