test_multipart_repeating_array() — anthropic-sdk-python Function Reference
Architecture documentation for the test_multipart_repeating_array() function in test_client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD b1a873af_fdbd_552d_996d_b33110dab384["test_multipart_repeating_array()"] d53b6c34_1743_a045_4be1_3554ab153964["TestAnthropic"] b1a873af_fdbd_552d_996d_b33110dab384 -->|defined in| d53b6c34_1743_a045_4be1_3554ab153964 f950ebb0_eb0c_8648_7312_6d421e9663e6["test_multipart_repeating_array()"] f950ebb0_eb0c_8648_7312_6d421e9663e6 -->|calls| b1a873af_fdbd_552d_996d_b33110dab384 f950ebb0_eb0c_8648_7312_6d421e9663e6["test_multipart_repeating_array()"] b1a873af_fdbd_552d_996d_b33110dab384 -->|calls| f950ebb0_eb0c_8648_7312_6d421e9663e6 style b1a873af_fdbd_552d_996d_b33110dab384 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_client.py lines 537–564
def test_multipart_repeating_array(self, client: Anthropic) -> None:
request = client._build_request(
FinalRequestOptions.construct(
method="post",
url="/foo",
headers={"Content-Type": "multipart/form-data; boundary=6b7ba517decee4a450543ea6ae821c82"},
json_data={"array": ["foo", "bar"]},
files=[("foo.txt", b"hello world")],
)
)
assert request.read().split(b"\r\n") == [
b"--6b7ba517decee4a450543ea6ae821c82",
b'Content-Disposition: form-data; name="array[]"',
b"",
b"foo",
b"--6b7ba517decee4a450543ea6ae821c82",
b'Content-Disposition: form-data; name="array[]"',
b"",
b"bar",
b"--6b7ba517decee4a450543ea6ae821c82",
b'Content-Disposition: form-data; name="foo.txt"; filename="upload"',
b"Content-Type: application/octet-stream",
b"",
b"hello world",
b"--6b7ba517decee4a450543ea6ae821c82--",
b"",
]
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does test_multipart_repeating_array() do?
test_multipart_repeating_array() is a function in the anthropic-sdk-python codebase, defined in tests/test_client.py.
Where is test_multipart_repeating_array() defined?
test_multipart_repeating_array() is defined in tests/test_client.py at line 537.
What does test_multipart_repeating_array() call?
test_multipart_repeating_array() calls 1 function(s): test_multipart_repeating_array.
What calls test_multipart_repeating_array()?
test_multipart_repeating_array() is called by 1 function(s): test_multipart_repeating_array.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free