path_with_added_args now works with multiple existing args

This commit is contained in:
Simon Willison 2018-05-14 19:09:09 -03:00 committed by Simon Willison
commit 8a4ed052a5
2 changed files with 5 additions and 2 deletions

View file

@ -35,6 +35,9 @@ def test_urlsafe_components(path, expected):
('/?_facet=state&_facet=city&state=MI', (
('city', 'Detroit'),
), '/?_facet=state&_facet=city&state=MI&city=Detroit'),
('/?_facet=state&_facet=city', (
('_facet', 'planet_id'),
), '/?_facet=state&_facet=city&_facet=planet_id'),
])
def test_path_with_added_args(path, added_args, expected):
request = Request(