test_broken_session_stream_no_raise() — fastapi Function Reference
Architecture documentation for the test_broken_session_stream_no_raise() function in test_dependency_after_yield_streaming.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 0a29affc_086c_a9ab_94bc_b8a6ff468898["test_broken_session_stream_no_raise()"] c577968e_a400_0bfd_3947_3f6bc4f681d1["test_dependency_after_yield_streaming.py"] 0a29affc_086c_a9ab_94bc_b8a6ff468898 -->|defined in| c577968e_a400_0bfd_3947_3f6bc4f681d1 style 0a29affc_086c_a9ab_94bc_b8a6ff468898 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_dependency_after_yield_streaming.py lines 121–130
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
afterwards, an exception is raised and captured or shown in the server logs.
"""
with TestClient(app, raise_server_exceptions=False) as client:
response = client.get("/broken-session-stream")
assert response.status_code == 200
assert response.text == ""
Domain
Subdomains
Source
Frequently Asked Questions
What does test_broken_session_stream_no_raise() do?
test_broken_session_stream_no_raise() is a function in the fastapi codebase, defined in tests/test_dependency_after_yield_streaming.py.
Where is test_broken_session_stream_no_raise() defined?
test_broken_session_stream_no_raise() is defined in tests/test_dependency_after_yield_streaming.py at line 121.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free