mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-09 13:00:34 +00:00
huggingface: fix standard test lint (#28714)
This commit is contained in:
parent
b909d54e70
commit
3107d78517
@ -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 ChatModelIntegrationTests
|
from langchain_tests.integration_tests import ChatModelIntegrationTests
|
||||||
|
|
||||||
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
|
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
|
||||||
@ -82,9 +83,15 @@ class TestHuggingFaceEndpoint(ChatModelIntegrationTests):
|
|||||||
super().test_structured_output_optional_param(model)
|
super().test_structured_output_optional_param(model)
|
||||||
|
|
||||||
@pytest.mark.xfail(reason=("Not implemented"))
|
@pytest.mark.xfail(reason=("Not 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=my_adder_tool
|
||||||
|
)
|
||||||
|
|
||||||
@pytest.mark.xfail(reason=("Not implemented"))
|
@pytest.mark.xfail(reason=("Not implemented"))
|
||||||
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=my_adder_tool)
|
||||||
|
Loading…
Reference in New Issue
Block a user