Home / Function/ _setup_test_dir() — langchain Function Reference

_setup_test_dir() — langchain Function Reference

Architecture documentation for the _setup_test_dir() function in sandboxes.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  af30c0f2_4100_e35a_7db4_18b64d38a4c4["_setup_test_dir()"]
  44713bb8_64c7_b8af_22f9_b6db34868592["SandboxIntegrationTests"]
  af30c0f2_4100_e35a_7db4_18b64d38a4c4 -->|defined in| 44713bb8_64c7_b8af_22f9_b6db34868592
  style af30c0f2_4100_e35a_7db4_18b64d38a4c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/integration_tests/sandboxes.py lines 86–91

    def _setup_test_dir(self, sandbox_backend: SandboxBackendProtocol) -> None:
        if not self.has_sync:
            pytest.skip("Sync tests not supported.")
        sandbox_backend.execute(
            "rm -rf /tmp/test_sandbox_ops && mkdir -p /tmp/test_sandbox_ops"
        )

Domain

Subdomains

Frequently Asked Questions

What does _setup_test_dir() do?
_setup_test_dir() is a function in the langchain codebase, defined in libs/standard-tests/langchain_tests/integration_tests/sandboxes.py.
Where is _setup_test_dir() defined?
_setup_test_dir() is defined in libs/standard-tests/langchain_tests/integration_tests/sandboxes.py at line 86.

Analyze Your Own Codebase

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

Try Supermodel Free