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

test_array_comma() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ec2a9601_01c6_359f_f211_c2a5d1e4431b["test_array_comma()"]
  f0b34a63_809b_7308_2411_fc88725d50fa["test_qs.py"]
  ec2a9601_01c6_359f_f211_c2a5d1e4431b -->|defined in| f0b34a63_809b_7308_2411_fc88725d50fa
  style ec2a9601_01c6_359f_f211_c2a5d1e4431b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_qs.py lines 46–54

def test_array_comma(method: str) -> None:
    if method == "class":
        serialise = Querystring(array_format="comma").stringify
    else:
        serialise = partial(stringify, array_format="comma")

    assert unquote(serialise({"in": ["foo", "bar"]})) == "in=foo,bar"
    assert unquote(serialise({"a": {"b": [True, False]}})) == "a[b]=true,false"
    assert unquote(serialise({"a": {"b": [True, False, None, True]}})) == "a[b]=true,false,true"

Subdomains

Defined In

Frequently Asked Questions

What does test_array_comma() do?
test_array_comma() is a function in the anthropic-sdk-python codebase, defined in tests/test_qs.py.
Where is test_array_comma() defined?
test_array_comma() is defined in tests/test_qs.py at line 46.

Analyze Your Own Codebase

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

Try Supermodel Free