MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_array_comma

Function test_array_comma

tests/test_qs.py:46–54  ·  view source on GitHub ↗
(method: str)

Source from the content-addressed store, hash-verified

44
45@pytest.mark.parametrize("method", ["class", "function"])
46def test_array_comma(method: str) -> None:
47 if method == "class":
48 serialise = Querystring(array_format="comma").stringify
49 else:
50 serialise = partial(stringify, array_format="comma")
51
52 assert unquote(serialise({"in": ["foo", "bar"]})) == "in=foo,bar"
53 assert unquote(serialise({"a": {"b": [True, False]}})) == "a[b]=true,false"
54 assert unquote(serialise({"a": {"b": [True, False, None, True]}})) == "a[b]=true,false,true"
55
56
57def test_array_repeat() -> None:

Callers

nothing calls this directly

Calls 1

QuerystringClass · 0.90

Tested by

no test coverage detected