test_vectorstore_still_empty_async() — langchain Function Reference
Architecture documentation for the test_vectorstore_still_empty_async() function in vectorstores.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a5955926_abb6_dcd0_a32e_14e37e179317["test_vectorstore_still_empty_async()"] 6b7f515d_5b14_acff_3191_2493436e519d["VectorStoreIntegrationTests"] a5955926_abb6_dcd0_a32e_14e37e179317 -->|defined in| 6b7f515d_5b14_acff_3191_2493436e519d style a5955926_abb6_dcd0_a32e_14e37e179317 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/standard-tests/langchain_tests/integration_tests/vectorstores.py lines 535–554
async def test_vectorstore_still_empty_async(
self, vectorstore: VectorStore
) -> None:
"""Test that the `VectorStore` is still empty.
This test should follow a test that adds documents.
This just verifies that the fixture is set up properly to be empty
after each test.
??? note "Troubleshooting"
If this test fails, check that the test class (i.e., sub class of
`VectorStoreIntegrationTests`) correctly clears the vector store in the
`finally` block.
"""
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_still_empty_async() do?
test_vectorstore_still_empty_async() is a function in the langchain codebase, defined in libs/standard-tests/langchain_tests/integration_tests/vectorstores.py.
Where is test_vectorstore_still_empty_async() defined?
test_vectorstore_still_empty_async() is defined in libs/standard-tests/langchain_tests/integration_tests/vectorstores.py at line 535.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free