test_creates_bash_tool() — langchain Function Reference
Architecture documentation for the test_creates_bash_tool() function in test_bash.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 36152e62_2323_0b03_ee2d_923a634cf758["test_creates_bash_tool()"] 19d3e6c3_6baa_fc3d_b762_dd47791fe238["test_bash.py"] 36152e62_2323_0b03_ee2d_923a634cf758 -->|defined in| 19d3e6c3_6baa_fc3d_b762_dd47791fe238 style 36152e62_2323_0b03_ee2d_923a634cf758 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/unit_tests/middleware/test_bash.py lines 14–23
def test_creates_bash_tool(monkeypatch: pytest.MonkeyPatch) -> None:
"""Test that ClaudeBashToolMiddleware creates a tool named 'bash'."""
middleware = ClaudeBashToolMiddleware()
# Should have exactly one tool registered (from parent)
assert len(middleware.tools) == 1
# Tool is named "bash" (via tool_name parameter)
bash_tool = middleware.tools[0]
assert bash_tool.name == "bash"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_creates_bash_tool() do?
test_creates_bash_tool() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/middleware/test_bash.py.
Where is test_creates_bash_tool() defined?
test_creates_bash_tool() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_bash.py at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free