Skip to content

Commit 0a44264

Browse files
mdrxyccurme
andauthored
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 <[email protected]>
1 parent 4960663 commit 0a44264

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed
Binary file not shown.

β€Žlibs/partners/anthropic/tests/integration_tests/test_chat_models.pyβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,7 @@ def test_files_api_pdf(block_format: str) -> None:
17001700
_ = llm.invoke([input_message])
17011701

17021702

1703+
@pytest.mark.vcr
17031704
def test_search_result_tool_message() -> None:
17041705
"""Test that we can pass a search result tool message to the model."""
17051706
llm = ChatAnthropic(

β€Žlibs/partners/anthropic/uv.lockβ€Ž

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)