test_download_multiple_files_order_preserved() — langchain Function Reference
Architecture documentation for the test_download_multiple_files_order_preserved() function in sandboxes.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 42d202b3_25e5_fa4d_22ef_ed0f021e97e4["test_download_multiple_files_order_preserved()"] 44713bb8_64c7_b8af_22f9_b6db34868592["SandboxIntegrationTests"] 42d202b3_25e5_fa4d_22ef_ed0f021e97e4 -->|defined in| 44713bb8_64c7_b8af_22f9_b6db34868592 style 42d202b3_25e5_fa4d_22ef_ed0f021e97e4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/standard-tests/langchain_tests/integration_tests/sandboxes.py lines 238–260
def test_download_multiple_files_order_preserved(
self,
sandbox_backend: SandboxBackendProtocol,
) -> None:
"""Downloading multiple files should preserve input order in responses."""
if not self.has_sync:
pytest.skip("Sync tests not supported.")
files = [
("/tmp/test_batch_1.txt", b"Batch 1"),
("/tmp/test_batch_2.txt", b"Batch 2"),
("/tmp/test_batch_3.txt", b"Batch 3"),
]
sandbox_backend.upload_files(files)
paths = [p for p, _ in files]
download_responses = sandbox_backend.download_files(paths)
assert download_responses == [
FileDownloadResponse(path=files[0][0], content=files[0][1], error=None),
FileDownloadResponse(path=files[1][0], content=files[1][1], error=None),
FileDownloadResponse(path=files[2][0], content=files[2][1], error=None),
]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_download_multiple_files_order_preserved() do?
test_download_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_download_multiple_files_order_preserved() defined?
test_download_multiple_files_order_preserved() is defined in libs/standard-tests/langchain_tests/integration_tests/sandboxes.py at line 238.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free