test_set_invalid_key() — langchain Function Reference
Architecture documentation for the test_set_invalid_key() function in test_filesystem.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5a0a1e3b_d713_3ca6_a905_a64c02975973["test_set_invalid_key()"] dc21888b_994e_4dfd_2387_4da22b01f8de["test_filesystem.py"] 5a0a1e3b_d713_3ca6_a905_a64c02975973 -->|defined in| dc21888b_994e_4dfd_2387_4da22b01f8de style 5a0a1e3b_d713_3ca6_a905_a64c02975973 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/storage/test_filesystem.py lines 100–106
def test_set_invalid_key(file_store: LocalFileStore) -> None:
"""Test that an exception is raised when an invalid key is set."""
# Set a key-value pair
key = "crying-cat/😿"
value = b"This is a test value"
with pytest.raises(InvalidKeyException):
file_store.mset([(key, value)])
Domain
Subdomains
Source
Frequently Asked Questions
What does test_set_invalid_key() do?
test_set_invalid_key() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/storage/test_filesystem.py.
Where is test_set_invalid_key() defined?
test_set_invalid_key() is defined in libs/langchain/tests/unit_tests/storage/test_filesystem.py at line 100.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free