test_vectorstore_is_empty_async() — langchain Function Reference
Architecture documentation for the test_vectorstore_is_empty_async() function in vectorstores.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8452068b_e5df_05d6_d45a_28f2a2781429["test_vectorstore_is_empty_async()"] 6b7f515d_5b14_acff_3191_2493436e519d["VectorStoreIntegrationTests"] 8452068b_e5df_05d6_d45a_28f2a2781429 -->|defined in| 6b7f515d_5b14_acff_3191_2493436e519d style 8452068b_e5df_05d6_d45a_28f2a2781429 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/standard-tests/langchain_tests/integration_tests/vectorstores.py lines 486–498
async def test_vectorstore_is_empty_async(self, vectorstore: VectorStore) -> None:
"""Test that the `VectorStore` is empty.
??? note "Troubleshooting"
If this test fails, check that the test class (i.e., sub class of
`VectorStoreIntegrationTests`) initializes an empty vector store in the
`vectorestore` fixture.
"""
if not self.has_async:
pytest.skip("Async tests not supported.")
assert await vectorstore.asimilarity_search("foo", k=1) == []
Domain
Subdomains
Source
Frequently Asked Questions
What does test_vectorstore_is_empty_async() do?
test_vectorstore_is_empty_async() is a function in the langchain codebase, defined in libs/standard-tests/langchain_tests/integration_tests/vectorstores.py.
Where is test_vectorstore_is_empty_async() defined?
test_vectorstore_is_empty_async() is defined in libs/standard-tests/langchain_tests/integration_tests/vectorstores.py at line 486.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free