test_basic_path_normalization() — langchain Function Reference
Architecture documentation for the test_basic_path_normalization() function in test_anthropic_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 197e3c5b_e452_7cc3_3c4a_c8624399625b["test_basic_path_normalization()"] 9599afe1_8f2e_3733_d25a_c88263c5beba["TestPathValidation"] 197e3c5b_e452_7cc3_3c4a_c8624399625b -->|defined in| 9599afe1_8f2e_3733_d25a_c88263c5beba style 197e3c5b_e452_7cc3_3c4a_c8624399625b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/unit_tests/middleware/test_anthropic_tools.py lines 20–25
def test_basic_path_normalization(self) -> None:
"""Test basic path normalization."""
assert _validate_path("/foo/bar") == "/foo/bar"
assert _validate_path("foo/bar") == "/foo/bar"
assert _validate_path("/foo//bar") == "/foo/bar"
assert _validate_path("/foo/./bar") == "/foo/bar"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_basic_path_normalization() do?
test_basic_path_normalization() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/middleware/test_anthropic_tools.py.
Where is test_basic_path_normalization() defined?
test_basic_path_normalization() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_anthropic_tools.py at line 20.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free