Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_broken_session_stream_no_raise (0.17 sec)

  1. tests/test_dependency_after_yield_streaming.py

        # Can raise ValueError on Pydantic v2 and ExceptionGroup on Pydantic v1
        with pytest.raises((ValueError, Exception)):
            client.get("/broken-session-stream")
    
    
    def test_broken_session_stream_no_raise():
        """
        When a dependency with yield raises after the streaming response already started
        the 200 status code is already sent, but there's still an error in the server
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top