test_yield_keys() — langchain Function Reference
Architecture documentation for the test_yield_keys() function in test_filesystem.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD efc6acb2_04c6_6147_2485_1314a3dc5486["test_yield_keys()"] dc21888b_994e_4dfd_2387_4da22b01f8de["test_filesystem.py"] efc6acb2_04c6_6147_2485_1314a3dc5486 -->|defined in| dc21888b_994e_4dfd_2387_4da22b01f8de style efc6acb2_04c6_6147_2485_1314a3dc5486 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/storage/test_filesystem.py lines 122–132
def test_yield_keys(file_store: LocalFileStore) -> None:
# Set values for keys
key_value_pairs = [("key1", b"value1"), ("subdir/key2", b"value2")]
file_store.mset(key_value_pairs)
# Iterate over keys
keys = list(file_store.yield_keys())
# Assert that the yielded keys match the expected keys
expected_keys = ["key1", str(Path("subdir") / "key2")]
assert keys == expected_keys
Domain
Subdomains
Source
Frequently Asked Questions
What does test_yield_keys() do?
test_yield_keys() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/storage/test_filesystem.py.
Where is test_yield_keys() defined?
test_yield_keys() is defined in libs/langchain/tests/unit_tests/storage/test_filesystem.py at line 122.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free