Skip to content

Commit

Permalink
anthropic: timeout in tests (10s) (#28488)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Dec 5, 2024
1 parent f459754 commit c5acedd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/partners/anthropic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TEST_FILE ?= tests/unit_tests/
integration_test integration_tests: TEST_FILE=tests/integration_tests/

test tests integration_test integration_tests:
poetry run pytest $(TEST_FILE)
poetry run pytest -vvv --timeout 10 $(TEST_FILE)

test_watch:
poetry run ptw --snapshot-update --now . -- -vv $(TEST_FILE)
Expand Down
16 changes: 15 additions & 1 deletion libs/partners/anthropic/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libs/partners/anthropic/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ syrupy = "^4.0.2"
pytest-watcher = "^0.3.4"
pytest-asyncio = "^0.21.1"
defusedxml = "^0.7.1"
pytest-timeout = "^2.3.1"

[tool.poetry.group.codespell.dependencies]
codespell = "^2.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from langchain_anthropic import ChatAnthropic, ChatAnthropicMessages
from tests.unit_tests._utils import FakeCallbackHandler

MODEL_NAME = "claude-3-sonnet-20240229"
MODEL_NAME = "claude-3-5-sonnet-20240620"


def test_stream() -> None:
Expand Down

0 comments on commit c5acedd

Please sign in to comment.