test_raw_response_download() — anthropic-sdk-python Function Reference
Architecture documentation for the test_raw_response_download() function in test_files.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD eebd9fe3_ddb9_6135_2eec_662a9b3e0e41["test_raw_response_download()"] 742e4597_130d_e0c6_61cc_bc987186ac85["TestFiles"] eebd9fe3_ddb9_6135_2eec_662a9b3e0e41 -->|defined in| 742e4597_130d_e0c6_61cc_bc987186ac85 5d471873_8301_e07d_868c_e31d82726246["test_raw_response_download()"] 5d471873_8301_e07d_868c_e31d82726246 -->|calls| eebd9fe3_ddb9_6135_2eec_662a9b3e0e41 5d471873_8301_e07d_868c_e31d82726246["test_raw_response_download()"] eebd9fe3_ddb9_6135_2eec_662a9b3e0e41 -->|calls| 5d471873_8301_e07d_868c_e31d82726246 style eebd9fe3_ddb9_6135_2eec_662a9b3e0e41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/api_resources/beta/test_files.py lines 143–155
def test_raw_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"})
)
file = client.beta.files.with_raw_response.download(
file_id="file_id",
)
assert file.is_closed is True
assert file.http_request.headers.get("X-Stainless-Lang") == "python"
assert file.json() == {"foo": "bar"}
assert isinstance(file, BinaryAPIResponse)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does test_raw_response_download() do?
test_raw_response_download() is a function in the anthropic-sdk-python codebase, defined in tests/api_resources/beta/test_files.py.
Where is test_raw_response_download() defined?
test_raw_response_download() is defined in tests/api_resources/beta/test_files.py at line 143.
What does test_raw_response_download() call?
test_raw_response_download() calls 1 function(s): test_raw_response_download.
What calls test_raw_response_download()?
test_raw_response_download() is called by 1 function(s): test_raw_response_download.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free