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(