Home / Function/ test_raw_response() — anthropic-sdk-python Function Reference

test_raw_response() — anthropic-sdk-python Function Reference

Architecture documentation for the test_raw_response() function in test_client.py from the anthropic-sdk-python codebase.

Function python AnthropicClient AsyncAPI calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  aed21858_eb15_a7cb_a832_a6cb0d4205e4["test_raw_response()"]
  d53b6c34_1743_a045_4be1_3554ab153964["TestAnthropic"]
  aed21858_eb15_a7cb_a832_a6cb0d4205e4 -->|defined in| d53b6c34_1743_a045_4be1_3554ab153964
  fe60adc8_f8e4_f5da_4100_e19f48ca3844["test_raw_response()"]
  fe60adc8_f8e4_f5da_4100_e19f48ca3844 -->|calls| aed21858_eb15_a7cb_a832_a6cb0d4205e4
  fe60adc8_f8e4_f5da_4100_e19f48ca3844["test_raw_response()"]
  aed21858_eb15_a7cb_a832_a6cb0d4205e4 -->|calls| fe60adc8_f8e4_f5da_4100_e19f48ca3844
  style aed21858_eb15_a7cb_a832_a6cb0d4205e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_client.py lines 117–123

    def test_raw_response(self, respx_mock: MockRouter, client: Anthropic) -> None:
        respx_mock.post("/foo").mock(return_value=httpx.Response(200, json={"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"}

Subdomains

Frequently Asked Questions

What does test_raw_response() do?
test_raw_response() is a function in the anthropic-sdk-python codebase, defined in tests/test_client.py.
Where is test_raw_response() defined?
test_raw_response() is defined in tests/test_client.py at line 117.
What does test_raw_response() call?
test_raw_response() calls 1 function(s): test_raw_response.
What calls test_raw_response()?
test_raw_response() is called by 1 function(s): test_raw_response.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free