mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 06:39:52 +00:00
multiple: fix xfailed signatures (#28597)
This commit is contained in:
parent
b7c2029e84
commit
0eb7ab65f1
@ -4,6 +4,7 @@ from typing import Type
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from langchain_core.language_models import BaseChatModel
|
from langchain_core.language_models import BaseChatModel
|
||||||
|
from langchain_core.tools import BaseTool
|
||||||
from langchain_tests.integration_tests import ( # type: ignore[import-not-found]
|
from langchain_tests.integration_tests import ( # type: ignore[import-not-found]
|
||||||
ChatModelIntegrationTests, # type: ignore[import-not-found]
|
ChatModelIntegrationTests, # type: ignore[import-not-found]
|
||||||
)
|
)
|
||||||
@ -24,5 +25,7 @@ class TestFireworksStandard(ChatModelIntegrationTests):
|
|||||||
}
|
}
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="Not yet implemented.")
|
@pytest.mark.xfail(reason="Not yet implemented.")
|
||||||
def test_tool_message_histories_list_content(self, model: BaseChatModel) -> None:
|
def test_tool_message_histories_list_content(
|
||||||
super().test_tool_message_histories_list_content(model)
|
self, model: BaseChatModel, my_adder_tool: BaseTool
|
||||||
|
) -> None:
|
||||||
|
super().test_tool_message_histories_list_content(model, my_adder_tool)
|
||||||
|
@ -5,6 +5,7 @@ from typing import Optional, Type
|
|||||||
import pytest
|
import pytest
|
||||||
from langchain_core.language_models import BaseChatModel
|
from langchain_core.language_models import BaseChatModel
|
||||||
from langchain_core.rate_limiters import InMemoryRateLimiter
|
from langchain_core.rate_limiters import InMemoryRateLimiter
|
||||||
|
from langchain_core.tools import BaseTool
|
||||||
from langchain_tests.integration_tests import (
|
from langchain_tests.integration_tests import (
|
||||||
ChatModelIntegrationTests,
|
ChatModelIntegrationTests,
|
||||||
)
|
)
|
||||||
@ -20,8 +21,10 @@ class BaseTestGroq(ChatModelIntegrationTests):
|
|||||||
return ChatGroq
|
return ChatGroq
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="Not yet implemented.")
|
@pytest.mark.xfail(reason="Not yet implemented.")
|
||||||
def test_tool_message_histories_list_content(self, model: BaseChatModel) -> None:
|
def test_tool_message_histories_list_content(
|
||||||
super().test_tool_message_histories_list_content(model)
|
self, model: BaseChatModel, my_adder_tool: BaseTool
|
||||||
|
) -> None:
|
||||||
|
super().test_tool_message_histories_list_content(model, my_adder_tool)
|
||||||
|
|
||||||
|
|
||||||
class TestGroqLlama(BaseTestGroq):
|
class TestGroqLlama(BaseTestGroq):
|
||||||
@ -47,8 +50,10 @@ class TestGroqLlama(BaseTestGroq):
|
|||||||
@pytest.mark.xfail(
|
@pytest.mark.xfail(
|
||||||
reason=("Fails with 'Failed to call a function. Please adjust your prompt.'")
|
reason=("Fails with 'Failed to call a function. Please adjust your prompt.'")
|
||||||
)
|
)
|
||||||
def test_tool_message_histories_string_content(self, model: BaseChatModel) -> None:
|
def test_tool_message_histories_string_content(
|
||||||
super().test_tool_message_histories_string_content(model)
|
self, model: BaseChatModel, my_adder_tool: BaseTool
|
||||||
|
) -> None:
|
||||||
|
super().test_tool_message_histories_string_content(model, my_adder_tool)
|
||||||
|
|
||||||
@pytest.mark.xfail(
|
@pytest.mark.xfail(
|
||||||
reason=(
|
reason=(
|
||||||
|
@ -4,6 +4,7 @@ from typing import Tuple, Type
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from langchain_core.language_models import BaseChatModel
|
from langchain_core.language_models import BaseChatModel
|
||||||
|
from langchain_core.tools import BaseTool
|
||||||
from langchain_tests.unit_tests import ChatModelUnitTests
|
from langchain_tests.unit_tests import ChatModelUnitTests
|
||||||
|
|
||||||
from langchain_openai import AzureChatOpenAI
|
from langchain_openai import AzureChatOpenAI
|
||||||
@ -23,8 +24,10 @@ class TestOpenAIStandard(ChatModelUnitTests):
|
|||||||
}
|
}
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="AzureOpenAI does not support tool_choice='any'")
|
@pytest.mark.xfail(reason="AzureOpenAI does not support tool_choice='any'")
|
||||||
def test_bind_tool_pydantic(self, model: BaseChatModel) -> None:
|
def test_bind_tool_pydantic(
|
||||||
super().test_bind_tool_pydantic(model)
|
self, model: BaseChatModel, my_adder_tool: BaseTool
|
||||||
|
) -> None:
|
||||||
|
super().test_bind_tool_pydantic(model, my_adder_tool)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def init_from_env_params(self) -> Tuple[dict, dict, dict]:
|
def init_from_env_params(self) -> Tuple[dict, dict, dict]:
|
||||||
|
@ -5,6 +5,7 @@ from typing import Optional, Type
|
|||||||
import pytest # type: ignore[import-not-found]
|
import pytest # type: ignore[import-not-found]
|
||||||
from langchain_core.language_models import BaseChatModel
|
from langchain_core.language_models import BaseChatModel
|
||||||
from langchain_core.rate_limiters import InMemoryRateLimiter
|
from langchain_core.rate_limiters import InMemoryRateLimiter
|
||||||
|
from langchain_core.tools import BaseTool
|
||||||
from langchain_tests.integration_tests import ( # type: ignore[import-not-found]
|
from langchain_tests.integration_tests import ( # type: ignore[import-not-found]
|
||||||
ChatModelIntegrationTests, # type: ignore[import-not-found]
|
ChatModelIntegrationTests, # type: ignore[import-not-found]
|
||||||
)
|
)
|
||||||
@ -40,13 +41,19 @@ class TestXAIStandard(ChatModelIntegrationTests):
|
|||||||
super().test_usage_metadata_streaming(model)
|
super().test_usage_metadata_streaming(model)
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="Can't handle AIMessage with empty content.")
|
@pytest.mark.xfail(reason="Can't handle AIMessage with empty content.")
|
||||||
def test_tool_message_error_status(self, model: BaseChatModel) -> None:
|
def test_tool_message_error_status(
|
||||||
super().test_tool_message_error_status(model)
|
self, model: BaseChatModel, my_adder_tool: BaseTool
|
||||||
|
) -> None:
|
||||||
|
super().test_tool_message_error_status(model, my_adder_tool)
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="Can't handle AIMessage with empty content.")
|
@pytest.mark.xfail(reason="Can't handle AIMessage with empty content.")
|
||||||
def test_structured_few_shot_examples(self, model: BaseChatModel) -> None:
|
def test_structured_few_shot_examples(
|
||||||
super().test_structured_few_shot_examples(model)
|
self, model: BaseChatModel, my_adder_tool: BaseTool
|
||||||
|
) -> None:
|
||||||
|
super().test_structured_few_shot_examples(model, my_adder_tool)
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="Can't handle AIMessage with empty content.")
|
@pytest.mark.xfail(reason="Can't handle AIMessage with empty content.")
|
||||||
def test_tool_message_histories_string_content(self, model: BaseChatModel) -> None:
|
def test_tool_message_histories_string_content(
|
||||||
super().test_tool_message_histories_string_content(model)
|
self, model: BaseChatModel, my_adder_tool: BaseTool
|
||||||
|
) -> None:
|
||||||
|
super().test_tool_message_histories_string_content(model, my_adder_tool)
|
||||||
|
Loading…
Reference in New Issue
Block a user