Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_raw_data_sent_without_json_encoding (0.49 seconds)

  1. tests/test_sse.py

    
    def test_server_sent_event_float_retry_rejected():
        with pytest.raises(ValueError):
            ServerSentEvent(data="test", retry=1.5)  # type: ignore[arg-type]
    
    
    def test_raw_data_sent_without_json_encoding(client: TestClient):
        """raw_data is sent as-is, not JSON-encoded."""
        response = client.get("/items/stream-raw")
        assert response.status_code == 200
        text = response.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