Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_validation_error_with_only_path (0.14 seconds)

  1. tests/test_validation_error_context.py

        assert captured_exception.exception is not None
        error_str = str(captured_exception.exception)
        assert "subapp_websocket_endpoint" in error_str
        assert "/sub/ws/" in error_str
    
    
    def test_validation_error_with_only_path():
        errors = [{"type": "missing", "loc": ("body", "name"), "msg": "Field required"}]
        exc = RequestValidationError(errors, endpoint_ctx={"path": "GET /api/test"})
        error_str = str(exc)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 06 12:21:57 GMT 2025
    - 4.7K bytes
    - Click Count (0)
Back to Top