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

Function test_array_repeat

tests/test_qs.py:57–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56
57def test_array_repeat() -> None:
58 assert unquote(stringify({"in": ["foo", "bar"]})) == "in=foo&in=bar"
59 assert unquote(stringify({"a": {"b": [True, False]}})) == "a[b]=true&a[b]=false"
60 assert unquote(stringify({"a": {"b": [True, False, None, True]}})) == "a[b]=true&a[b]=false&a[b]=true"
61 assert unquote(stringify({"in": ["foo", {"b": {"c": ["d", "e"]}}]})) == "in=foo&in[b][c]=d&in[b][c]=e"
62
63
64@pytest.mark.parametrize("method", ["class", "function"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected