From c97aa7e1752f3075b07baf41511a2e23358a4378 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Mon, 14 Sep 2026 20:49:05 +0200 Subject: [PATCH] Add test for empty SSE event --- tests/test_sse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_sse.py b/tests/test_sse.py index ed6dd79ac0..1bcb247912 100644 --- a/tests/test_sse.py +++ b/tests/test_sse.py @@ -396,6 +396,10 @@ def test_format_sse_event_splitlines_behavior_in_comment(): assert format_sse_event(comment="hi\n") == b": hi\n: \n\n" +def test_format_sse_event_without_fields(): + assert format_sse_event() == b"\n" + + # default_response_class tests