Use dash-encoding for row PKs and ?_next=, refs #1439

This commit is contained in:
Simon Willison 2022-03-06 14:07:03 -08:00
commit 4976494160
8 changed files with 50 additions and 21 deletions

View file

@ -93,7 +93,7 @@ def test_path_with_replaced_args(path, args, expected):
"row,pks,expected_path",
[
({"A": "foo", "B": "bar"}, ["A", "B"], "foo,bar"),
({"A": "f,o", "B": "bar"}, ["A", "B"], "f%2Co,bar"),
({"A": "f,o", "B": "bar"}, ["A", "B"], "f-2Co,bar"),
({"A": 123}, ["A"], "123"),
(
utils.CustomRow(