mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 05:13:46 +00:00
tests[patch]: nits (#28601)
This commit is contained in:
parent
a32035d17d
commit
d801c6ffc7
@ -3,5 +3,5 @@ Base Test classes for standard testing.
|
|||||||
|
|
||||||
To learn how to use these classes, see the
|
To learn how to use these classes, see the
|
||||||
`Integration standard testing <https://python.langchain.com/docs/contributing/how_to/integrations/standard_tests/>`_
|
`Integration standard testing <https://python.langchain.com/docs/contributing/how_to/integrations/standard_tests/>`_
|
||||||
guide
|
guide.
|
||||||
"""
|
"""
|
||||||
|
@ -15,7 +15,7 @@ EMBEDDING_SIZE = 6
|
|||||||
|
|
||||||
|
|
||||||
class VectorStoreIntegrationTests(BaseStandardTests):
|
class VectorStoreIntegrationTests(BaseStandardTests):
|
||||||
"""Base class for checking the read-write API of a vector store.
|
"""Base class for vector store integration tests.
|
||||||
|
|
||||||
Implementers should subclass this test suite and provide a fixture
|
Implementers should subclass this test suite and provide a fixture
|
||||||
that returns an empty vector store for each test.
|
that returns an empty vector store for each test.
|
||||||
|
@ -105,6 +105,8 @@ class ChatModelTests(BaseStandardTests):
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def my_adder_tool(self) -> BaseTool:
|
def my_adder_tool(self) -> BaseTool:
|
||||||
|
""":private:"""
|
||||||
|
|
||||||
@tool
|
@tool
|
||||||
def my_adder_tool(a: int, b: int) -> int:
|
def my_adder_tool(a: int, b: int) -> int:
|
||||||
"""Takes two integers, a and b, and returns their sum."""
|
"""Takes two integers, a and b, and returns their sum."""
|
||||||
|
Loading…
Reference in New Issue
Block a user