test(anthropic): add vcr to test_search_result_tool_message (#33793)

To fix nondeterministic results causing integration testing to sometimes
fail

Also speeds up from 10s to 0.5

---------

Co-authored-by: ccurme <chester.curme@gmail.com>
This commit is contained in:
Mason Daugherty
2025-11-03 10:13:30 -05:00
committed by GitHub
parent 4960663546
commit 0a442644e3
3 changed files with 4 additions and 1 deletions

View File

@@ -1700,6 +1700,7 @@ def test_files_api_pdf(block_format: str) -> None:
_ = llm.invoke([input_message])
@pytest.mark.vcr
def test_search_result_tool_message() -> None:
"""Test that we can pass a search result tool message to the model."""
llm = ChatAnthropic(

View File

@@ -622,7 +622,7 @@ typing = [
[[package]]
name = "langchain-core"
version = "1.0.2"
version = "1.0.3"
source = { editable = "../../core" }
dependencies = [
{ name = "jsonpatch" },
@@ -656,6 +656,7 @@ test = [
{ name = "blockbuster", specifier = ">=1.5.18,<1.6.0" },
{ name = "freezegun", specifier = ">=1.2.2,<2.0.0" },
{ name = "grandalf", specifier = ">=0.8.0,<1.0.0" },
{ name = "langchain-model-profiles", directory = "../../model-profiles" },
{ name = "langchain-tests", directory = "../../standard-tests" },
{ name = "numpy", marker = "python_full_version < '3.13'", specifier = ">=1.26.4" },
{ name = "numpy", marker = "python_full_version >= '3.13'", specifier = ">=2.1.0" },
@@ -672,6 +673,7 @@ test = [
]
test-integration = []
typing = [
{ name = "langchain-model-profiles", directory = "../../model-profiles" },
{ name = "langchain-text-splitters", directory = "../../text-splitters" },
{ name = "mypy", specifier = ">=1.18.1,<1.19.0" },
{ name = "types-pyyaml", specifier = ">=6.0.12.2,<7.0.0.0" },