mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
path_with_added_args now preserves order in Python 3.5
This commit is contained in:
parent
eaf715a60a
commit
2b79f2bdeb
2 changed files with 9 additions and 7 deletions
|
|
@ -29,9 +29,12 @@ def test_urlsafe_components(path, expected):
|
|||
('/foo?bar=1&bar=2', {'baz': 3}, '/foo?bar=1&bar=2&baz=3'),
|
||||
('/foo?bar=1', {'bar': None}, '/foo'),
|
||||
# Test order is preserved
|
||||
('/?_facet=prim_state&_facet=area_name', {
|
||||
'prim_state': 'GA'
|
||||
}, '/?_facet=prim_state&_facet=area_name&prim_state=GA'),
|
||||
('/?_facet=prim_state&_facet=area_name', (
|
||||
('prim_state', 'GA'),
|
||||
), '/?_facet=prim_state&_facet=area_name&prim_state=GA'),
|
||||
('/?_facet=state&_facet=city&state=MI', (
|
||||
('city', 'Detroit'),
|
||||
), '/?_facet=state&_facet=city&state=MI&city=Detroit'),
|
||||
])
|
||||
def test_path_with_added_args(path, added_args, expected):
|
||||
request = Request(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue