Home / Function/ test_upload_multiple_files_order_preserved() — langchain Function Reference

test_upload_multiple_files_order_preserved() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/integration_tests/sandboxes.py lines 216–236

    def test_upload_multiple_files_order_preserved(
        self,
        sandbox_backend: SandboxBackendProtocol,
    ) -> None:
        """Uploading multiple files should preserve input order in responses."""
        if not self.has_sync:
            pytest.skip("Sync tests not supported.")

        files = [
            ("/tmp/test_multi_1.txt", b"Content 1"),
            ("/tmp/test_multi_2.txt", b"Content 2"),
            ("/tmp/test_multi_3.txt", b"Content 3"),
        ]

        upload_responses = sandbox_backend.upload_files(files)

        assert upload_responses == [
            FileUploadResponse(path=files[0][0], error=None),
            FileUploadResponse(path=files[1][0], error=None),
            FileUploadResponse(path=files[2][0], error=None),
        ]

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free