Home / Function/ test_download_error_file_not_found() — langchain Function Reference

test_download_error_file_not_found() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/integration_tests/sandboxes.py lines 280–295

    def test_download_error_file_not_found(
        self, sandbox_backend: SandboxBackendProtocol
    ) -> None:
        """Downloading a missing file should return `error="file_not_found"`."""
        if not self.has_sync:
            pytest.skip("Sync tests not supported.")

        missing_path = "/tmp/nonexistent_test_file.txt"

        responses = sandbox_backend.download_files([missing_path])

        assert responses == [
            FileDownloadResponse(
                path=missing_path, content=None, error="file_not_found"
            )
        ]

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free