test_set_key_and_verify_content() — langchain Function Reference
Architecture documentation for the test_set_key_and_verify_content() function in test_filesystem.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 55931f26_f510_a7c6_8e1f_f8b99c2c65ea["test_set_key_and_verify_content()"] dc21888b_994e_4dfd_2387_4da22b01f8de["test_filesystem.py"] 55931f26_f510_a7c6_8e1f_f8b99c2c65ea -->|defined in| dc21888b_994e_4dfd_2387_4da22b01f8de style 55931f26_f510_a7c6_8e1f_f8b99c2c65ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/storage/test_filesystem.py lines 109–119
def test_set_key_and_verify_content(file_store: LocalFileStore) -> None:
"""Test that the content of the file is the same as the value set."""
# Set a key-value pair
key = "test_key"
value = b"This is a test value"
file_store.mset([(key, value)])
# Verify the content of the actual file
full_path = file_store._get_full_path(key)
assert full_path.exists()
assert full_path.read_bytes() == b"This is a test value"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_set_key_and_verify_content() do?
test_set_key_and_verify_content() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/storage/test_filesystem.py.
Where is test_set_key_and_verify_content() defined?
test_set_key_and_verify_content() is defined in libs/langchain/tests/unit_tests/storage/test_filesystem.py at line 109.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free