def test_function_with_docstring_no_description():
    """Test that a function with no description in the docstring raises an exception."""

    def func_with_no_description(a: int, b: int) -> int:
        """
        Args:
            a: First integer.
            b: Second integer.

        Returns:
            int: Sum of a and b.
        """
        return a + b

    with pytest.raises(
        ValueError,
        match="Function description is missing in the docstring. Please provide a function description.",
    ):
        generate_sql_function_body(func_with_no_description, "test_catalog", "test_schema")
Test that a function with no description in the docstring raises an exception.
ai/core/tests/core/test_callable_utils.py