The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
chroma[patch]: (nit) simplify test (#28517)
ccurme8bc2c912b853
diff --git a/libs/partners/chroma/tests/integration_tests/test_standard.py b/libs/partners/chroma/tests/integration_tests/test_standard.pyindex 9211f77c4e..4396cf8df5 100644--- a/libs/partners/chroma/tests/integration_tests/test_standard.py+++ b/libs/partners/chroma/tests/integration_tests/test_standard.py@@ -1,7 +1,6 @@from typing import AsyncGenerator, Generatorimport pytest-from langchain_core.embeddings.fake import DeterministicFakeEmbeddingfrom langchain_core.vectorstores import VectorStorefrom langchain_tests.integration_tests.vectorstores import (AsyncReadWriteTestSuite,@@ -15,8 +14,7 @@ class TestSync(ReadWriteTestSuite):@pytest.fixture()def vectorstore(self) -> Generator[VectorStore, None, None]: # type: ignore"""Get an empty vectorstore for unit tests."""- embeddings = DeterministicFakeEmbedding(size=10)- store = Chroma(embedding_function=embeddings)+ store = Chroma(embedding_function=self.get_embeddings())try:yield storefinally:@@ -28,8 +26,7 @@ class TestAsync(AsyncReadWriteTestSuite):@pytest.fixture()async def vectorstore(self) -> AsyncGenerator[VectorStore, None]: # type: ignore"""Get an empty vectorstore for unit tests."""- embeddings = DeterministicFakeEmbedding(size=10)- store = Chroma(embedding_function=embeddings)+ store = Chroma(embedding_function=self.get_embeddings())try:yield storefinally: