test_raw_response_for_binary() — anthropic-sdk-python Function Reference
Architecture documentation for the test_raw_response_for_binary() function in test_client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 1f603d78_5e09_2f3a_dcef_536d1e4e3baf["test_raw_response_for_binary()"] d53b6c34_1743_a045_4be1_3554ab153964["TestAnthropic"] 1f603d78_5e09_2f3a_dcef_536d1e4e3baf -->|defined in| d53b6c34_1743_a045_4be1_3554ab153964 f6197800_7239_1194_baac_fe29d16c004c["test_raw_response_for_binary()"] f6197800_7239_1194_baac_fe29d16c004c -->|calls| 1f603d78_5e09_2f3a_dcef_536d1e4e3baf f6197800_7239_1194_baac_fe29d16c004c["test_raw_response_for_binary()"] 1f603d78_5e09_2f3a_dcef_536d1e4e3baf -->|calls| f6197800_7239_1194_baac_fe29d16c004c style 1f603d78_5e09_2f3a_dcef_536d1e4e3baf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_client.py lines 126–134
def test_raw_response_for_binary(self, respx_mock: MockRouter, client: Anthropic) -> None:
respx_mock.post("/foo").mock(
return_value=httpx.Response(200, headers={"Content-Type": "application/binary"}, content='{"foo": "bar"}')
)
response = client.post("/foo", cast_to=httpx.Response)
assert response.status_code == 200
assert isinstance(response, httpx.Response)
assert response.json() == {"foo": "bar"}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does test_raw_response_for_binary() do?
test_raw_response_for_binary() is a function in the anthropic-sdk-python codebase, defined in tests/test_client.py.
Where is test_raw_response_for_binary() defined?
test_raw_response_for_binary() is defined in tests/test_client.py at line 126.
What does test_raw_response_for_binary() call?
test_raw_response_for_binary() calls 1 function(s): test_raw_response_for_binary.
What calls test_raw_response_for_binary()?
test_raw_response_for_binary() is called by 1 function(s): test_raw_response_for_binary.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free