Browse Source

Add test for empty data value

pull/15515/head
Yurii Motov 2 weeks ago
committed by GitHub
parent
commit
bba5af7c9a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      tests/test_sse.py

1
tests/test_sse.py

@ -337,6 +337,7 @@ def test_no_keepalive_when_fast(client: TestClient):
("Hello\rWorld", b"data: Hello\ndata: World\n\n"),
("A\u2028B", "data: A\u2028B\n\n".encode()),
("A\vB", b"data: A\x0bB\n\n"),
("", b"data: \n\n"),
],
)
def test_format_sse_event_splitlines_behavior_in_data(

Loading…
Cancel
Save