Add test for empty SSE event

This commit is contained in:
Yurii Motov committed 2026-09-14 20:49:05 +02:00
1 parent 1a5d4bcedd
commit c97aa7e175
1 file changed
+4
+4
View File
@@ -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