test_binary_content_upload() — anthropic-sdk-python Function Reference
Architecture documentation for the test_binary_content_upload() function in test_client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 52e84651_891a_10e8_724c_3d7b7dc99906["test_binary_content_upload()"] 9bf4cfe0_e3b0_70de_25ac_2113c8918900["TestAsyncAnthropic"] 52e84651_891a_10e8_724c_3d7b7dc99906 -->|defined in| 9bf4cfe0_e3b0_70de_25ac_2113c8918900 01fe5115_a465_a84d_d746_ee01b2e40101["test_binary_content_upload()"] 01fe5115_a465_a84d_d746_ee01b2e40101 -->|calls| 52e84651_891a_10e8_724c_3d7b7dc99906 01fe5115_a465_a84d_d746_ee01b2e40101["test_binary_content_upload()"] 52e84651_891a_10e8_724c_3d7b7dc99906 -->|calls| 01fe5115_a465_a84d_d746_ee01b2e40101 style 52e84651_891a_10e8_724c_3d7b7dc99906 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_client.py lines 1547–1561
async def test_binary_content_upload(self, respx_mock: MockRouter, async_client: AsyncAnthropic) -> None:
respx_mock.post("/upload").mock(side_effect=mirror_request_content)
file_content = b"Hello, this is a test file."
response = await async_client.post(
"/upload",
content=file_content,
cast_to=httpx.Response,
options={"headers": {"Content-Type": "application/octet-stream"}},
)
assert response.status_code == 200
assert response.request.headers["Content-Type"] == "application/octet-stream"
assert response.content == file_content
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does test_binary_content_upload() do?
test_binary_content_upload() is a function in the anthropic-sdk-python codebase, defined in tests/test_client.py.
Where is test_binary_content_upload() defined?
test_binary_content_upload() is defined in tests/test_client.py at line 1547.
What does test_binary_content_upload() call?
test_binary_content_upload() calls 1 function(s): test_binary_content_upload.
What calls test_binary_content_upload()?
test_binary_content_upload() is called by 1 function(s): test_binary_content_upload.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free