(method: str)
| 55 | |
| 56 | @pytest.mark.parametrize("method", ["class", "function"]) |
| 57 | def test_array_comma(method: str) -> None: |
| 58 | if method == "class": |
| 59 | serialise = Querystring(array_format="comma").stringify |
| 60 | else: |
| 61 | serialise = partial(stringify, array_format="comma") |
| 62 | |
| 63 | assert unquote(serialise({"in": ["foo", "bar"]})) == "in=foo,bar" |
| 64 | assert unquote(serialise({"a": {"b": [True, False]}})) == "a[b]=true,false" |
| 65 | assert unquote(serialise({"a": {"b": [True, False, None, True]}})) == "a[b]=true,false,true" |
| 66 | |
| 67 | |
| 68 | def test_array_repeat() -> None: |
nothing calls this directly
no test coverage detected