Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_traceback_for_dependency_with_yield (0.18 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_exception_handlers.py

        response = client.get("/server-error")
        assert response.status_code == 500
        assert response.json() == {"exception": "server-error"}
    
    
    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]
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 03 22:37:12 GMT 2024
    - 2.4K bytes
    - Click Count (0)
Back to Top