(method: str)
| 44 | |
| 45 | @pytest.mark.parametrize("method", ["class", "function"]) |
| 46 | def 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 | |
| 57 | def test_array_repeat() -> None: |
nothing calls this directly
no test coverage detected