Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_no_keepalive_when_fast (0.35 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_sse.py

        text = response.text
        assert ": ping\n" in text
        data_lines = [line for line in text.split("\n") if line.startswith("data: ")]
        assert len(data_lines) == 2
    
    
    def test_no_keepalive_when_fast(client: TestClient):
        """No keepalive comment when items arrive quickly."""
        response = client.get("/items/stream")
        assert response.status_code == 200
        # KEEPALIVE_COMMENT is ": ping\n\n".
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
Back to Top