Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_mixed_plain_and_sse_events (0.39 seconds)

  1. tests/test_sse.py

        assert 'data: {"key": "value"}\n' in text
    
        assert ": just a comment\n" in text
    
        assert "retry: 5000\n" in text
        assert 'data: "retry-test"\n' in text
    
    
    def test_mixed_plain_and_sse_events(client: TestClient):
        response = client.get("/items/stream-mixed")
        assert response.status_code == 200
        text = response.text
    
        assert "event: special\n" in text
    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