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

test_basic() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d7aa50fd_509f_4ce1_e157_5085de006c22["test_basic()"]
  daa75f9a_3892_38ac_4897_b274c540a548["TestOpenapiDumps"]
  d7aa50fd_509f_4ce1_e157_5085de006c22 -->|defined in| daa75f9a_3892_38ac_4897_b274c540a548
  style d7aa50fd_509f_4ce1_e157_5085de006c22 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_utils/test_json.py lines 13–16

    def test_basic(self) -> None:
        data = {"key": "value", "number": 42}
        json_bytes = openapi_dumps(data)
        assert json_bytes == b'{"key":"value","number":42}'

Subdomains

Frequently Asked Questions

What does test_basic() do?
test_basic() is a function in the anthropic-sdk-python codebase, defined in tests/test_utils/test_json.py.
Where is test_basic() defined?
test_basic() is defined in tests/test_utils/test_json.py at line 13.

Analyze Your Own Codebase

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

Try Supermodel Free