From af74eba695c7f4d4b811ed4e4f26221994fc4cb6 Mon Sep 17 00:00:00 2001 From: "Wei Sun (Jack)" Date: Fri, 17 Oct 2025 16:52:29 -0700 Subject: [PATCH] test: Skips test_langchain_tool.py temporarily after their new 1.0.0 release breaks existings deps of langchain PiperOrigin-RevId: 820875043 --- tests/unittests/tools/test_langchain_tool.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/unittests/tools/test_langchain_tool.py b/tests/unittests/tools/test_langchain_tool.py index 998b3131..b2c7b681 100644 --- a/tests/unittests/tools/test_langchain_tool.py +++ b/tests/unittests/tools/test_langchain_tool.py @@ -12,13 +12,22 @@ # See the License for the specific language governing permissions and # limitations under the License. +import pytest + +# TODO: Re-enable this test after verifying LangchainTool and +# LangGraphAgent against langchain's 1.0.0 release. +pytest.skip( + allow_module_level=True, + reason="Langchain just made 1.0.0 release that breaks existing import.", +) + + from unittest.mock import MagicMock from google.adk.tools.langchain_tool import LangchainTool from langchain.tools import tool from langchain_core.tools.structured import StructuredTool from pydantic import BaseModel -import pytest @tool