mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-30 02:13:23 +00:00
anthropic: timeout in tests (10s) (#28488)
This commit is contained in:
parent
f459754470
commit
c5acedddc2
@ -8,7 +8,7 @@ TEST_FILE ?= tests/unit_tests/
|
|||||||
integration_test integration_tests: TEST_FILE=tests/integration_tests/
|
integration_test integration_tests: TEST_FILE=tests/integration_tests/
|
||||||
|
|
||||||
test tests integration_test integration_tests:
|
test tests integration_test integration_tests:
|
||||||
poetry run pytest $(TEST_FILE)
|
poetry run pytest -vvv --timeout 10 $(TEST_FILE)
|
||||||
|
|
||||||
test_watch:
|
test_watch:
|
||||||
poetry run ptw --snapshot-update --now . -- -vv $(TEST_FILE)
|
poetry run ptw --snapshot-update --now . -- -vv $(TEST_FILE)
|
||||||
|
16
libs/partners/anthropic/poetry.lock
generated
16
libs/partners/anthropic/poetry.lock
generated
@ -852,6 +852,20 @@ pytest = ">=6.2.5"
|
|||||||
[package.extras]
|
[package.extras]
|
||||||
dev = ["pre-commit", "pytest-asyncio", "tox"]
|
dev = ["pre-commit", "pytest-asyncio", "tox"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pytest-timeout"
|
||||||
|
version = "2.3.1"
|
||||||
|
description = "pytest plugin to abort hanging tests"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "pytest-timeout-2.3.1.tar.gz", hash = "sha256:12397729125c6ecbdaca01035b9e5239d4db97352320af155b3f5de1ba5165d9"},
|
||||||
|
{file = "pytest_timeout-2.3.1-py3-none-any.whl", hash = "sha256:68188cb703edfc6a18fad98dc25a3c61e9f24d644b0b70f33af545219fc7813e"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
pytest = ">=7.0.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest-watcher"
|
name = "pytest-watcher"
|
||||||
version = "0.3.5"
|
version = "0.3.5"
|
||||||
@ -1140,4 +1154,4 @@ watchmedo = ["PyYAML (>=3.10)"]
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = ">=3.9,<4.0"
|
python-versions = ">=3.9,<4.0"
|
||||||
content-hash = "ee4aaa06307b4dc7f7913147bf58f3f36245193c9d4a79c43aba07641f7b6ab9"
|
content-hash = "7d24a5eb5b867fa9ad80cbc9fb80d630e7cb00a490b62502cdb57c2fe95cd125"
|
||||||
|
@ -65,6 +65,7 @@ syrupy = "^4.0.2"
|
|||||||
pytest-watcher = "^0.3.4"
|
pytest-watcher = "^0.3.4"
|
||||||
pytest-asyncio = "^0.21.1"
|
pytest-asyncio = "^0.21.1"
|
||||||
defusedxml = "^0.7.1"
|
defusedxml = "^0.7.1"
|
||||||
|
pytest-timeout = "^2.3.1"
|
||||||
|
|
||||||
[tool.poetry.group.codespell.dependencies]
|
[tool.poetry.group.codespell.dependencies]
|
||||||
codespell = "^2.2.0"
|
codespell = "^2.2.0"
|
||||||
|
@ -22,7 +22,7 @@ from pydantic import BaseModel, Field
|
|||||||
from langchain_anthropic import ChatAnthropic, ChatAnthropicMessages
|
from langchain_anthropic import ChatAnthropic, ChatAnthropicMessages
|
||||||
from tests.unit_tests._utils import FakeCallbackHandler
|
from tests.unit_tests._utils import FakeCallbackHandler
|
||||||
|
|
||||||
MODEL_NAME = "claude-3-sonnet-20240229"
|
MODEL_NAME = "claude-3-5-sonnet-20240620"
|
||||||
|
|
||||||
|
|
||||||
def test_stream() -> None:
|
def test_stream() -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user