def test_function_with_empty_docstring():
    """Test that a function with an empty docstring raises an exception."""

    def func_with_empty_docstring(a: int, b: int) -> int:
        """ """
        return a + b

    with pytest.raises(
        ValueError,
        match="Function 'func_with_empty_docstring' must have a docstring with a description.",
    ):
        generate_sql_function_body(func_with_empty_docstring, "test_catalog", "test_schema")
Test that a function with an empty docstring raises an exception.
ai/core/tests/core/test_callable_utils.py