test_multi_byte_character_multiple_chunks() — anthropic-sdk-python Function Reference
Architecture documentation for the test_multi_byte_character_multiple_chunks() function in test_streaming.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 5fc0eae3_c56c_97e8_5f66_4b76e427a078["test_multi_byte_character_multiple_chunks()"] 2da79393_445f_321e_d12f_59a347c0de92["test_streaming.py"] 5fc0eae3_c56c_97e8_5f66_4b76e427a078 -->|defined in| 2da79393_445f_321e_d12f_59a347c0de92 fbe4a363_44d9_e077_1c73_3ec8f52d326c["make_event_iterator()"] 5fc0eae3_c56c_97e8_5f66_4b76e427a078 -->|calls| fbe4a363_44d9_e077_1c73_3ec8f52d326c e0c910ce_14e1_57db_2c86_d0aaa328f673["iter_next()"] 5fc0eae3_c56c_97e8_5f66_4b76e427a078 -->|calls| e0c910ce_14e1_57db_2c86_d0aaa328f673 style 5fc0eae3_c56c_97e8_5f66_4b76e427a078 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_streaming.py lines 197–216
async def test_multi_byte_character_multiple_chunks(
sync: bool,
client: Anthropic,
async_client: AsyncAnthropic,
) -> None:
def body() -> Iterator[bytes]:
yield b'data: {"content":"'
# bytes taken from the string 'известни' and arbitrarily split
# so that some multi-byte characters span multiple chunks
yield b"\xd0"
yield b"\xb8\xd0\xb7\xd0"
yield b"\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd0\xb8"
yield b'"}\n'
yield b"\n"
iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
sse = await iter_next(iterator)
assert sse.event is None
assert sse.json() == {"content": "известни"}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_multi_byte_character_multiple_chunks() do?
test_multi_byte_character_multiple_chunks() is a function in the anthropic-sdk-python codebase, defined in tests/test_streaming.py.
Where is test_multi_byte_character_multiple_chunks() defined?
test_multi_byte_character_multiple_chunks() is defined in tests/test_streaming.py at line 197.
What does test_multi_byte_character_multiple_chunks() call?
test_multi_byte_character_multiple_chunks() calls 2 function(s): iter_next, make_event_iterator.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free