mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-01 07:44:45 -04:00
Add test for empty SSE event
This commit is contained in:
1 parent
1a5d4bcedd
commit
c97aa7e175
1 file changed
+4
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user