test_streaming_response_download() — anthropic-sdk-python Function Reference
Architecture documentation for the test_streaming_response_download() function in test_files.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD a207cb83_be5f_99d2_3687_0d7524d44964["test_streaming_response_download()"] 742e4597_130d_e0c6_61cc_bc987186ac85["TestFiles"] a207cb83_be5f_99d2_3687_0d7524d44964 -->|defined in| 742e4597_130d_e0c6_61cc_bc987186ac85 3d5b594f_91cb_9f7d_82d9_74de2883d55a["test_streaming_response_download()"] 3d5b594f_91cb_9f7d_82d9_74de2883d55a -->|calls| a207cb83_be5f_99d2_3687_0d7524d44964 3d5b594f_91cb_9f7d_82d9_74de2883d55a["test_streaming_response_download()"] a207cb83_be5f_99d2_3687_0d7524d44964 -->|calls| 3d5b594f_91cb_9f7d_82d9_74de2883d55a style a207cb83_be5f_99d2_3687_0d7524d44964 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/api_resources/beta/test_files.py lines 159–173
def test_streaming_response_download(self, client: Anthropic, respx_mock: MockRouter) -> None:
respx_mock.get("/v1/files/file_id/content?beta=true").mock(
return_value=httpx.Response(200, json={"foo": "bar"})
)
with client.beta.files.with_streaming_response.download(
file_id="file_id",
) as file:
assert not file.is_closed
assert file.http_request.headers.get("X-Stainless-Lang") == "python"
assert file.json() == {"foo": "bar"}
assert cast(Any, file.is_closed) is True
assert isinstance(file, StreamedBinaryAPIResponse)
assert cast(Any, file.is_closed) is True
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does test_streaming_response_download() do?
test_streaming_response_download() is a function in the anthropic-sdk-python codebase, defined in tests/api_resources/beta/test_files.py.
Where is test_streaming_response_download() defined?
test_streaming_response_download() is defined in tests/api_resources/beta/test_files.py at line 159.
What does test_streaming_response_download() call?
test_streaming_response_download() calls 1 function(s): test_streaming_response_download.
What calls test_streaming_response_download()?
test_streaming_response_download() is called by 1 function(s): test_streaming_response_download.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free