test_adelete_keys() — langchain Function Reference
Architecture documentation for the test_adelete_keys() function in test_in_memory_record_manager.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 83277337_0aec_3204_b104_c7f30f4ac3d8["test_adelete_keys()"] 0a49adf9_8741_0192_f95b_5cb8cd00ab22["test_in_memory_record_manager.py"] 83277337_0aec_3204_b104_c7f30f4ac3d8 -->|defined in| 0a49adf9_8741_0192_f95b_5cb8cd00ab22 style 83277337_0aec_3204_b104_c7f30f4ac3d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/indexing/test_in_memory_record_manager.py lines 267–279
async def test_adelete_keys(amanager: InMemoryRecordManager) -> None:
"""Test deleting keys from the database."""
# Insert records
keys = ["key1", "key2", "key3"]
await amanager.aupdate(keys)
# Delete some keys
keys_to_delete = ["key1", "key2"]
await amanager.adelete_keys(keys_to_delete)
# Check if the deleted keys are no longer in the database
remaining_keys = await amanager.alist_keys()
assert remaining_keys == ["key3"]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_adelete_keys() do?
test_adelete_keys() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/indexing/test_in_memory_record_manager.py.
Where is test_adelete_keys() defined?
test_adelete_keys() is defined in libs/core/tests/unit_tests/indexing/test_in_memory_record_manager.py at line 267.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free