Skip to content

Commit 166d891

Browse files
fix(python): break long base64 string to satisfy ruff E501 line length
Split the inline base64-encoded PNG data in the blob attachment E2E test into a local variable with implicit string concatenation so every line stays within the 100-character limit enforced by ruff. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ba04bdf commit 166d891

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

python/e2e/test_session.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,19 @@ async def test_should_accept_blob_attachments(self, ctx: E2ETestContext):
574574
{"on_permission_request": PermissionHandler.approve_all}
575575
)
576576

577+
# 1x1 transparent PNG pixel, base64-encoded
578+
pixel_png = (
579+
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAY"
580+
"AAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhg"
581+
"GAWjR9awAAAABJRU5ErkJggg=="
582+
)
583+
577584
await session.send(
578585
"Describe this image",
579586
attachments=[
580587
{
581588
"type": "blob",
582-
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
589+
"data": pixel_png,
583590
"mimeType": "image/png",
584591
"displayName": "test-pixel.png",
585592
},

0 commit comments

Comments
 (0)