Home / Function/ test_normalize_commands_string_tuple_list() — langchain Function Reference

test_normalize_commands_string_tuple_list() — langchain Function Reference

Architecture documentation for the test_normalize_commands_string_tuple_list() function in test_shell_tool.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  7b817a95_705e_f3e9_8f5a_6142913e9a06["test_normalize_commands_string_tuple_list()"]
  f21fd460_1d0c_cb92_cfa1_eae0890e2f58["test_shell_tool.py"]
  7b817a95_705e_f3e9_8f5a_6142913e9a06 -->|defined in| f21fd460_1d0c_cb92_cfa1_eae0890e2f58
  style 7b817a95_705e_f3e9_8f5a_6142913e9a06 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_tool.py lines 426–435

def test_normalize_commands_string_tuple_list(
    tmp_path: Path,
    startup_commands: str | list[str] | tuple[str, ...] | None,
    expected: tuple[str, ...],
) -> None:
    """Test various command normalization formats."""
    middleware = ShellToolMiddleware(
        workspace_root=tmp_path / "workspace", startup_commands=startup_commands
    )
    assert middleware._startup_commands == expected

Domain

Subdomains

Frequently Asked Questions

What does test_normalize_commands_string_tuple_list() do?
test_normalize_commands_string_tuple_list() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_tool.py.
Where is test_normalize_commands_string_tuple_list() defined?
test_normalize_commands_string_tuple_list() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_shell_tool.py at line 426.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free