test_traceback_for_dependency_with_yield() — fastapi Function Reference
Architecture documentation for the test_traceback_for_dependency_with_yield() function in test_exception_handlers.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 8cefea60_a131_b2b7_ddc6_2b3723d5c05a["test_traceback_for_dependency_with_yield()"] 49e73d8b_45e4_f5d6_4dfd_6c0ce0292618["test_exception_handlers.py"] 8cefea60_a131_b2b7_ddc6_2b3723d5c05a -->|defined in| 49e73d8b_45e4_f5d6_4dfd_6c0ce0292618 style 8cefea60_a131_b2b7_ddc6_2b3723d5c05a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_exception_handlers.py lines 82–88
def test_traceback_for_dependency_with_yield():
client = TestClient(app, raise_server_exceptions=True)
with pytest.raises(ValueError) as exc_info:
client.get("/dependency-with-yield")
last_frame = exc_info.traceback[-1]
assert str(last_frame.path) == __file__
assert last_frame.lineno == raise_value_error.__code__.co_firstlineno
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_traceback_for_dependency_with_yield() do?
test_traceback_for_dependency_with_yield() is a function in the fastapi codebase, defined in tests/test_exception_handlers.py.
Where is test_traceback_for_dependency_with_yield() defined?
test_traceback_for_dependency_with_yield() is defined in tests/test_exception_handlers.py at line 82.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free