test: cover Jupyter MIME output paths

This commit is contained in:
lda committed 2026-08-30 19:35:27 +07:00 Verified
1 parent 6315235e16
commit 56e1b96077
3 files changed
+37 -2

No files matched your search

+2 -2
View File
@@ -29,8 +29,8 @@ def serialize_event(event: KernelMessage | InputRequest) -> dict[str, object]:
"password": event.password,
}
# Jupyter keeps binary MIME payloads in message buffers. Base64 makes
# those buffers safe to carry in the same NDJSON stream as text events.
# Some Jupyter messages keep binary payloads in message buffers. Base64
# makes those buffers safe to carry beside JSON MIME data in the stream.
return {
"type": "kernel_message",
"msg_type": event.msg_type,