Home / Function/ test_upload_relative_path_returns_invalid_path() — langchain Function Reference

test_upload_relative_path_returns_invalid_path() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/integration_tests/sandboxes.py lines 391–403

    def test_upload_relative_path_returns_invalid_path(
        self,
        sandbox_backend: SandboxBackendProtocol,
    ) -> None:
        """Uploading to a relative path should fail with `error="invalid_path"`."""
        if not self.has_sync:
            pytest.skip("Sync tests not supported.")

        path = "relative_upload.txt"
        content = b"nope"
        responses = sandbox_backend.upload_files([(path, content)])

        assert responses == [FileUploadResponse(path=path, error="invalid_path")]

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free