test_basic() — anthropic-sdk-python Function Reference
Architecture documentation for the test_basic() function in test_jsonl.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD a1a63b55_d4e5_c191_2c0c_ccd06f05d464["test_basic()"] 7e6f1ef1_47fa_dc28_4bd9_c457af975269["test_jsonl.py"] a1a63b55_d4e5_c191_2c0c_ccd06f05d464 -->|defined in| 7e6f1ef1_47fa_dc28_4bd9_c457af975269 6707cd01_7500_5cae_e645_5cf9bf66f082["make_jsonl_iterator()"] a1a63b55_d4e5_c191_2c0c_ccd06f05d464 -->|calls| 6707cd01_7500_5cae_e645_5cf9bf66f082 e921b3a3_39cd_cd70_1309_9d685c86876e["iter_next()"] a1a63b55_d4e5_c191_2c0c_ccd06f05d464 -->|calls| e921b3a3_39cd_cd70_1309_9d685c86876e 0e011b3c_8b32_66cd_d680_a4b5ffef0fde["assert_empty_iter()"] a1a63b55_d4e5_c191_2c0c_ccd06f05d464 -->|calls| 0e011b3c_8b32_66cd_d680_a4b5ffef0fde style a1a63b55_d4e5_c191_2c0c_ccd06f05d464 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/decoders/test_jsonl.py lines 16–30
async def test_basic(sync: bool) -> None:
def body() -> Iterator[bytes]:
yield b'{"foo":true}\n'
yield b'{"bar":false}\n'
iterator = make_jsonl_iterator(
content=body(),
sync=sync,
line_type=object,
)
assert await iter_next(iterator) == {"foo": True}
assert await iter_next(iterator) == {"bar": False}
await assert_empty_iter(iterator)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_basic() do?
test_basic() is a function in the anthropic-sdk-python codebase, defined in tests/decoders/test_jsonl.py.
Where is test_basic() defined?
test_basic() is defined in tests/decoders/test_jsonl.py at line 16.
What does test_basic() call?
test_basic() calls 3 function(s): assert_empty_iter, iter_next, make_jsonl_iterator.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free